CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

IDAlertController 0.1.0

IDAlertController 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Ivan Damjanovic.



  • By
  • Ivan Damjanović

Usage

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];

Requirements

  • ARC

Installation

Author

Ivan Damjanović, [email protected]

License

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