AlertPro 1.3

AlertPro 1.3

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jul 2016

Maintained by Ivan Shevelev.



UIViewController category for easy creating and showing UIAlertController.

Usage

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.

Requirements

Objective-C and iOS 8.0 or higher.

Installation

AlertPro is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'AlertPro'

Author

Ivan Shevelev, [email protected]

License

AlertPro is available under the MIT license. See the LICENSE file for more info.