Latest | 0.1.0 |
---|---|
Homepage | https://github.com/i-dama/IDAlertController |
License | MIT |
Platforms | ios 7.0, requires ARC |
Authors |
iOS7-safe UIAlertController
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:IDAlertControllerStyleActionSheet];
[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
IDAlertController is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod "IDAlertController"
Author
Ivan Damjanović, [email protected]
License
IDAlertController is available under the MIT license. See the LICENSE file for more info.
Latest podspec
{ "name": "IDAlertController", "version": "0.1.0", "summary": "iOS7-safe AlertController", "description": "nn * Markdown format.n * Don't worry about the indent, we strip it!n", "homepage": "https://github.com/i-dama/IDAlertController", "license": "MIT", "authors": { "Ivan Damjanoviu0107": "[email protected]" }, "source": { "git": "https://github.com/i-dama/IDAlertController.git", "tag": "0.1.0" }, "platforms": { "ios": "7.0" }, "requires_arc": true, "source_files": "Pod/Classes", "resource_bundles": { "IDAlertController": [ "Pod/Assets/*.png" ] }, "public_header_files": "Pod/Classes/**/*.h" }
Fri, 04 Mar 2016 04:39:04 +0000