TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | Custom |
ReleasedLast Release | Nov 2016 |
Maintained by Danilo Priore.
Makes really easy to use AlertView without having a instance variable for iOS and tvOS.
[AlertViewBlocks confirmWithTitle:@"Title" message:@"your message here"
confirm:^{
NSLog(@"Ok button selected!");
} cancel:^{
NSLog(@"Cancel button selected!");
}];
[AlertViewBlocks confirmWithTitle:@"Title" message:@"your message here"
YesNo:YES confirm:^{
NSLog(@"Yes button selected!");
} cancel:^{
NSLog(@"No button selected!");
}];
[AlertViewBlocks alertWithTitle:@"Title" message:@"you message here" confirm:^(NSInteger index) {
NSLog(@"Button #%i selected!", index);
} cancel:^{
NSLog(@"Cancel button selected!");
} otherButtonTitles:@"Button 1", @"Button 2", @"Button 3", nil];