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

Making Things See

Making Things See

Greg Borenstein / Make / 2012-2-3 / USD 39.99

Welcome to the Vision Revolution. With Microsoft's Kinect leading the way, you can now use 3D computer vision technology to build digital 3D models of people and objects that you can manipulate with g......一起来看看 《Making Things See》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具