Latest | 0.1.6 |
---|---|
Homepage | https://github.com/vivalalova/LOAlertController |
License | MIT |
Platforms | ios 8.0, requires ARC |
Authors |
Usage
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Installation
LOAlertController is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod "LOAlertController"
Getting start
import
#import "UIAlertController+LOAlertController.h"
One method to set alertController
[UIAlertController showWithController:self cancelTitle:@"cancel action title" type:UIAlertControllerStyleActionSheet title:@"title" message:@"message" buttons:@[@"action 1 title", @"action 2 title"] complete:^(NSInteger buttonIndex) {
//button index as bottons
switch (buttonIndex) {
case 0:
//to something
break;
case 1:
//to something
break;
default:
//return -1 if cancel action pressed
return;
break;
}
}];
Author
vivalalova
License
LOAlertController is available under the MIT license. See the LICENSE file for more info.
Latest podspec
{ "name": "LOAlertController", "version": "0.1.6", "summary": "AlertController", "description": "UIAlertContorller wrapper", "homepage": "https://github.com/vivalalova/LOAlertController", "license": "MIT", "authors": { "vivalalova": "[email protected]" }, "source": { "git": "https://github.com/vivalalova/LOAlertController.git", "tag": "0.1.6" }, "platforms": { "ios": "8.0" }, "requires_arc": true, "source_files": "Pod/Classes/**/*" }
Tue, 21 Feb 2017 02:20:33 +0000