All Projects → alexruperez → ARAlertController

alexruperez / ARAlertController

Licence: MIT license
UIAlertController compatible iOS >= 5.0

Programming Languages

objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

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:

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].