TAKAlertUtil 2.1

TAKAlertUtil 2.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2016

Maintained by taktem, Taktem.



  • By
  • SOMTD

UIAlertViewとUIAlertControllerを、OS判別した上で分岐する

Podfile

pod 'TAKAlertUtil'

Requirements

This is in need of ReactiveCocoa

Get Started

#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.");
        }
    }];

License

TAKAlertUtil is released under the MIT license. See LICENSE for details.