IDAlertController 0.1.0

IDAlertController 0.1.0

测试已测试
Lang语言 Obj-CObjective C
许可 MIT
发布最后发布2014年12月

Ivan Damjanovic维护。



  • 作者
  • Ivan Damjanović

使用方法

要运行示例项目,请克隆仓库,并首先从示例目录运行pod install


IDAlertController使用类似于UIAlertController的语法

IDAlertController *alertController = [IDAlertController alertControllerWithTitle:@"Hello world" message:nil preferredStyle:IDAlertCsontrollerStyleActionSheet];
    [alertController addActionWithTitle:@"Cancel" style:IDAlertActionStyleCancel handler:^(IDAlertAction *action) {
        NSLog(@"Cancel");
    }];
    [alertController addActionWithTitle:@"Destructive" style:IDAlertActionStyleDestructive handler:^(IDAlertAction *action) {
        NSLog(@"Destructive");
    }];
    [alertController addActionWithTitle:@"Option one" style:IDAlertActionStyleDefault handler:^(IDAlertAction *action) {
        NSLog(@"Option one");
    }];
    [alertController addActionWithTitle:@"Option two" style:IDAlertActionStyleDefault handler:^(IDAlertAction *action) {
        NSLog(@"Option two");
    }];
    [alertController show];

要求

  • ARC

安装

作者

Ivan Damjanović,[email protected]

许可

IDAlertController在MIT许可下可用。有关更多信息,请参阅LICENSE文件。