Home

Awesome

ARAlertController

Join the chat at https://gitter.im/alexruperez/ARAlertController Twitter GitHub Issues CI Status Version License Platform Dependency Status Analytics

Overview

UIAlertController compatible iOS >= 5.0

iOS >= 8

ARAlertController iOS8 Alert ARAlertController iOS8 ActionSheet

iOS <= 7

ARAlertController iOS7 Alert ARAlertController iOS7 ActionSheet

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:

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.

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.