TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Apr 2016 |
UIAlertViewとUIAlertControllerを、OS判別した上で分岐する
pod 'TAKAlertUtil'
This is in need of ReactiveCocoa
#import "TAKAlertUtil.h"
[[TAKAlertUtil showWithTitle:@"Title"
message:@"Alert message"
buttonTitles:@[@"Cancel",@"OK"]] subscribeNext:^(id x) {
if ([x intValue] == 0) {
NSLog(@"Cancel button tapped.");
} else {
NSLog(@"OK button tapped.");
}
}];
TAKAlertUtil is released under the MIT license. See LICENSE for details.