Latest 1.2.1
Homepage https://github.com/shoaib-akhtar/UIAlertController-SBAWindow
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, UIKit
Authors

=============================================

Light-weight category that adds -showAnimated method to UIAlertController. Presenting UIAlertControllers from anywhere in the window.

Installation

Use CocoaPods.

pod 'UIAlertController+SBAWindow'

Usage

UIAlertController* controller=[UIAlertController alertControllerWithTitle:@"Test controller" message:@"message" preferredStyle:UIAlertControllerStyleActionSheet];

UIAlertAction* action1=[UIAlertAction actionWithTitle:@"Action1" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {

}];

UIAlertAction* action2=[UIAlertAction actionWithTitle:@"Action2" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {

}];

UIAlertAction* cancel=[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {

}];

[controller addAction:action1];
[controller addAction:action2];
[controller addAction:cancel];

[controller showAnimated:TRUE];

License

UIAlertController+SBAWindow is under MIT. See LICENSE file for more info.

Latest podspec

{
    "name": "UIAlertController+SBAWindow",
    "version": "1.2.1",
    "summary": "Light-weight category that adds -showAnimated method to UIAlertController. Presenting UIAlertControllers from anywhere in the window.",
    "homepage": "https://github.com/shoaib-akhtar/UIAlertController-SBAWindow",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Shoaib Akhtar": "[email protected]"
    },
    "source": {
        "git": "https://github.com/shoaib-akhtar/UIAlertController-SBAWindow.git",
        "branch": "master",
        "tag": "1.2.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Classes/*.{h,m}",
    "frameworks": [
        "Foundation",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This