CLSystemAlertController

码农软件 · 软件分类 · 提醒 (Notification) · 2019-05-20 22:56:46

软件介绍

CLSystemAlertController 封装了系统提示窗口,兼容iOS8.3以下版本。

使用方法:

__weak __typeof(self) weakSelf = self;
[CLSystemAlertController ShowAlertToController:self
                          alertControllerStyle:SystemAlertStyleAlert
                                         title:@"这是标题"
                                       message:@"详细信息"
                             cancelButtonTitle:@"取消"
                        destructiveButtonTitle:@"重点按钮"
                             otherButtonTitles:@[@"第二", @"第三"]
                            clickedButtonBlock:^(NSUInteger index) {
                                weakSelf.indexField.text = [NSString stringWithFormat:@"%d", index];
                            }];
如果共有n个按钮,则:
cancelButton按钮的序号为 0,
destructiveButton按钮的序号为1,
otherButton按钮的序号从为 2 ~ n-1,
如果cancelButtonTitle或者destructiveButtonTitle为nil,则其他按钮的序号向前补位

本文地址:https://www.codercto.com/soft/d/6192.html

疯狂HTML 5/CSS 3/JavaScript讲义

疯狂HTML 5/CSS 3/JavaScript讲义

李刚 / 电子工业出版社 / 2012-5-1 / 69.00元

疯狂HTML 5/CSS 3/JavaScript讲义,ISBN:9787121168635,作者:李刚 编著一起来看看 《疯狂HTML 5/CSS 3/JavaScript讲义》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具