Skip to content

UIViewController category for easy showing UIAlertController.

License

Notifications You must be signed in to change notification settings

ivanshevelev/AlertPro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AlertPro

Version License Platform

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, ivan.shevelev@sibers.com

License

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

About

UIViewController category for easy showing UIAlertController.

Resources

License

Stars

Watchers

Forks

Packages

No packages published