ARAlertController 0.1.3

ARAlertController 0.1.3

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2015

Maintained by alexruperez.




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:

  • 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.