CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Aug 2016 |
Maintained by Shashank Pali.
ATZAlertController helps you to create an alert from any class without any dependency on ViewController. The name itself derives that it provides A to Z solution towards the UIAlertController with various types of functions you can use them accordingly. ATZAlertController is easy to use and implement.
CocoaPods is the preferred way to install this library. Add this command to your Podfile:
pod 'ATZAlertController-ObjC'
Download .zip file and extract it. There you will find the ATZAlertController folder, copy all the files from the folder to your respective project.
#import "ATZAlertController.h"
[ATZAlertController alertWithTitle:@"My Alert"
message:@"Array containing object string"
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:@"Remove"
otherButtonTitles:@[@"Ok", @"Right"]
preferredStyle:UIAlertControllerStyleAlert
showAlertInstantly:YES
block:^(UIAlertAction * _Nonnull action, NSString * _Nonnull titleString) {
//your code
}];#import "ATZAlertController.h"
ATZActionButton *button1 = [ATZActionButton actionWithTitle:@"Ok" preferredStyle:UIAlertActionStyleDefault];
ATZActionButton *button2 = [ATZActionButton actionWithTitle:@"Remove" preferredStyle:UIAlertActionStyleDestructive];
ATZAlertController *alert = [ATZAlertController alertWithTitle:@"My Alert"
message:@"Array containing object string"
cancelButtonTitle:@"Cancel"
otherActionButton:@[button1, button2]
preferredStyle:UIAlertControllerStyleAlert
showAlertInstantly:NO
block:^(UIAlertAction * _Nonnull action, NSString * _Nonnull titleString) {
//your code
}];
[alert showWithAnimation:NO];ATZAlertController is available under the MIT license. See the LICENSE file for more info.