Latest 0.1.0
Homepage https://github.com/burtworld/QLAlertViewController
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Usage

#import "QLAlertViewController.h"
QLAlertViewController *alert = [QLAlertViewController alertWithTitle:@"this is title" message:@"i am message" style:style];

QLAlertAction *cancleAction = [QLAlertAction actionWithTitle:@"Cancle Action" style:QLAlertActionStyleCancel handler:^{
NSLog(@"this is cancle Action");
[alert dismissViewControllerAnimated:YES completion:nil];
}];

QLAlertAction *dangerAction = [QLAlertAction actionWithTitle:@"Danger" color:[UIColor redColor] font:[UIFont systemFontOfSize:18.0f] style:QLAlertActionStyleDefault handler:^{
NSLog(@"Danger");
}];
[alert addActions:@[cancleAction,dangerAction]];
if (count > 0) {
QLAlertAction *ignoreAction = [QLAlertAction actionWithTitle:@"Ignore" color:[UIColor grayColor] font:[UIFont systemFontOfSize:14.0f] style:QLAlertActionStyleDefault handler:^{
NSLog(@"ignoreAction");
}];

QLAlertAction *passAction = [QLAlertAction actionWithTitle:@"AassAction" color:[UIColor greenColor] font:[UIFont systemFontOfSize:20.0f] style:QLAlertActionStyleDestructive handler:^{
NSLog(@"passAction");
}];
[alert addActions:@[ignoreAction,passAction]];
}
[self presentViewController:alert animated:YES completion:NULL];

Installation

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

pod 'QLAlertViewController'

Author

Paramita, [email protected]

License

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

Latest podspec

{
    "name": "QLAlertViewController",
    "version": "0.1.0",
    "summary": "An AlertViewController for Custom,Used just like system control",
    "homepage": "https://github.com/burtworld/QLAlertViewController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Paramita": "[email protected]"
    },
    "source": {
        "git": "https://github.com/burtworld/QLAlertViewController.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": [
        "QLAlertViewController/Classes",
        "QLAlertViewController/Classes/**/*.{h,m}"
    ]
}

Pin It on Pinterest

Share This