CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Ivan Damjanovic.
To run the example project, clone the repo, and run pod install
from the Example directory first.
IDAlertController uses UIAlertController-like syntax:
IDAlertController *alertController = [IDAlertController alertControllerWithTitle:@"Hello world" message:nil preferredStyle:IDAlertCsontrollerStyleActionSheet];
[alertController addActionWithTitle:@"Cancel" style:IDAlertActionStyleCancel handler:^(IDAlertAction *action) {
NSLog(@"Cancel");
}];
[alertController addActionWithTitle:@"Destructive" style:IDAlertActionStyleDestructive handler:^(IDAlertAction *action) {
NSLog(@"Destructive");
}];
[alertController addActionWithTitle:@"Option one" style:IDAlertActionStyleDefault handler:^(IDAlertAction *action) {
NSLog(@"Option one");
}];
[alertController addActionWithTitle:@"Option two" style:IDAlertActionStyleDefault handler:^(IDAlertAction *action) {
NSLog(@"Option two");
}];
[alertController show];
Ivan Damjanović, [email protected]
IDAlertController is available under the MIT license. See the LICENSE file for more info.