freak4pc/UIActionSheet-Blocks — pull request #2 by fousa (2013-12-15 11:29:02+00:00)
Title: Make sure the Xcode autocompleten returns the correct block with it's pa...

```
[UIActionSheet presentOnView:self.view.window withTitle:NSLocalizedString(@"Validate flight", @"Validate flight") cancelButton:NSLocalizedString(@"Cancel", @"Cancel") destructiveButton:NSLocalizedString(@"Invalid", @"Invalid") otherButtons:@[NSLocalizedString(@"Valid", @"Valid")] onCancel:^(UIActionSheet *) {
NSLog(@"cancel");
} onDestructive:^(UIActionSheet *) {
NSLog(@"invalid");
} onClickedButton:^(UIActionSheet *, NSUInteger) {
NSLog(@"invalid");
}];
```

should return

```
[UIActionSheet presentOnView:self.view.window withTitle:NSLocalizedString(@"Validate flight", @"Validate flight") cancelButton:NSLocalizedString(@"Cancel", @"Cancel") destructiveButton:NSLocalizedString(@"Invalid", @"Invalid") otherButtons:@[NSLocalizedString(@"Valid", @"Valid")] onCancel:^(UIActionSheet *sheet) {
NSLog(@"cancel");
} onDestructive:^(UIActionSheet *sheet) {
NSLog(@"invalid");
} onClickedButton:^(UIActionSheet *sheet, NSUInteger buttonIndex) {
NSLog(@"invalid");
}];
```