Awesome
ARAlertController
Overview
UIAlertController compatible iOS >= 5.0
iOS >= 8
iOS <= 7
Usage
Installation
ARAlertController is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ARAlertController'
Or you can add the following files to your project:
ARAlertController.m
ARAlertController.h
To run the example project, clone the repo, and run pod install
from the Example directory first.
Example
ARAlertController *alert = [ARAlertController alertControllerWithTitle:@"My Alert" message:@"This is an alert." preferredStyle:ARAlertControllerStyleAlert];
ARAlertAction* defaultAction = [ARAlertAction actionWithTitle:@"OK" style:ARAlertActionStyleDefault handler:^(ARAlertAction * action) {}];
[alert addAction:defaultAction];
[alert presentInViewController:self animated:YES completion:nil];
Etc.
- Contributions are very welcome.
- Attribution is appreciated (let's spread the word!), but not mandatory.
Use it? Love/hate it?
Tweet the author @alexruperez, and check out alexruperez's blog: http://alexruperez.com
License
ARAlertController is available under the MIT license. See the LICENSE file for more info.