DSDAlertManager is intended to simplify the dialog display in iOS.
- iOS 8.0+
To run the example project, clone the repo, and run pod install
from the Example directory first.
DSDAlertManager is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "DSDAlertManager"
[DSDAlertManager showAlert:self
title:@"title"
message:@"message"
ok:^{
NSLog(@"OK tap!");
}];
[DSDAlertManager showAlert:self
title:@"title"
message:@"message"
okLabel:@"CustomOK"
ok:^{
NSLog(@"OK tap!");
}];
[DSDAlertManager showAlert:self
title:@"title"
message:@"message"
ok:^{
NSLog(@"OK tap!");
}
cancel:^{
NSLog(@"Cancel tap!");
}];
[DSDAlertManager showAlert:self
title:@"title"
message:@"message"
yes:^{
NSLog(@"YES tap!");
}
no:^{
NSLog(@"NO tap!");
}];
[DSDAlertManager showAlert:self
title:@"title"
message:@"message"
yesLabel:@"CustomYES"
yes:^{
NSLog(@"YES tap!");
}
noLabel:@"CustomNO"
no:^{
NSLog(@"NO tap!");
}];
[DSDAlertManager showEditAlert:self
title:@"title"
message:@"message"
value:_dataSources[4].value
ok:^(NSString *value) {
NSLog(@"OK(%@) tap!", value);
}
cancel:^{
NSLog(@"Cancel tap!");
}];
dsdsk
DSDAlertManager is available under the MIT license. See the LICENSE file for more info.