Latest 0.1.7
Homepage https://github.com/efremidze/LEAlertController
License MIT
Platforms ios 7.0, requires ARC
Authors

CI Status
Version
License
Platform

Overview

LEAlertController is a lightweight UIAlertController extension for iOS 7 support. Fallbacks to using UIAlertView and UIActionSheet for iOS 7.

UIAlertView Screenshot
UIActionSheet Screenshot

Usage

Installation

LEAlertController is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "LEAlertController"

Example

Use like a UIAlertController

LEAlertController *alertController = [LEAlertController alertControllerWithTitle:@"Default Style" message:@"A standard alert." preferredStyle:LEAlertControllerStyleAlert];

LEAlertAction *cancelAction = [LEAlertAction actionWithTitle:@"Cancel" style:LEAlertActionStyleCancel handler:^(LEAlertAction *action) {
    // handle cancel button action
}];
[alertController addAction:cancelAction];

LEAlertAction *defaultAction = [LEAlertAction actionWithTitle:@"OK" style:LEAlertActionStyleDefault handler:^(LEAlertAction *action) {
    // handle default button action
}];
[alertController addAction:defaultAction];

[self presentAlertController:alertController animated:YES completion:nil];

Contributions

Contributions are totally welcome.

License

LEAlertController is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "LEAlertController",
    "version": "0.1.7",
    "summary": "UIAlertController for both iOS 7 and 8",
    "description": "LEAlertController is a UIAlertController extension for iOS 7 support",
    "homepage": "https://github.com/efremidze/LEAlertController",
    "screenshots": [
        "https://github.com/efremidze/LEAlertController/raw/master/Screenshots/alert.png",
        "https://github.com/efremidze/LEAlertController/raw/master/Screenshots/actionsheet.png"
    ],
    "license": "MIT",
    "authors": {
        "Lasha Efremidze": "[email protected]"
    },
    "source": {
        "git": "https://github.com/efremidze/LEAlertController.git",
        "tag": "0.1.7"
    },
    "social_media_url": "http://linkedin.com/in/efremidze",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "LEAlertController/*"
}

Pin It on Pinterest

Share This