CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

QLAlertViewController 0.1.0

QLAlertViewController 0.1.0

Maintained by paramita.



  • By
  • Paramita

QLAlertViewController

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.