UGDAlertView 0.1.0

UGDAlertView 0.1.0

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布上次发布2015年12月

Afinello 维护。



使用方法

使用类似代码在你的视图控制器中显示自定义操作提示弹窗

UGDAlertViewController* actionVC = [[UGDAlertViewController alloc] initWithTitle:@"Alert title" 
                                                                            text:@"Want to use custom alert view with call to action?" 
                                                                            icon:nil 
                                                                     actionTitle:@"Sure" 
                                                                        negative:@"No, thanks"];

[actionVC setMargin:UIEdgeInsetsMake(self.topLayoutGuide.length, 0, self.bottomLayoutGuide.length, 0)];

[actionVC showInViewController:self withCompletion:^(BOOL accepted) {
    // your code here
    // (accepted == YES) if user pressed the call to action button

    // remove alert view
    [actionVC hideAnimated:YES];
}];

要求

iOS 7 及以上版本

安装

UGDAlertView 可通过 CocoaPods 获取。要安装它,只需将以下行添加到你的 Podfile 中

pod "UGDAlertView"

作者

Afinello

许可证

UGDAlertView 可在 MIT 许可证下使用。查看 LICENSE 文件获取更多信息。