UIViewController category for easy creating and showing UIAlertController.
So simple, lol.
[self hrShowActionSheetWithTitle:@"Title" message:@"Message" buttonTitles:@[@"First", @"Second"] actionHandler:^(NSInteger indexOfAction, NSString * _Nonnull title) {
[self showHandleAlertWithMessage:[NSString stringWithFormat:@"Tapped button with name: '%@'", title]];
} andCancelActionHandler:^{
[self showHandleAlertWithMessage:@"Cancel button is tapped"];
}];
-(void)showHandleAlertWithMessage:(NSString *)message {
[self hrShowAlertWithTitle:@"Handle!" message:message];
}
For another methods usage see documentation.
Objective-C and iOS 8.0 or higher.
AlertPro is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'AlertPro'
Ivan Shevelev, ivan.shevelev@sibers.com
AlertPro is available under the MIT license. See the LICENSE file for more info.