UIAlertController的使用
2015-12-31 16:35
232 查看
UIAlertController *alert = [UIAlertController
alertControllerWithTitle:@"确定删除此分类吗?"
message:nil
preferredStyle:UIAlertControllerStyleAlert];
[alert addAction:[UIAlertAction
actionWithTitle:@"确定"
style:UIAlertActionStyleDefault
handler:^(UIAlertAction *
_Nonnull action) {
[self
shanChunFenLei];
}]];
[alert addAction:[UIAlertAction
actionWithTitle:@"取消"
style:UIAlertActionStyleCancel
handler:^(UIAlertAction *
_Nonnull action) {
}]];
[self
presentViewController:alert
animated:YES
completion:nil];
alertControllerWithTitle:@"确定删除此分类吗?"
message:nil
preferredStyle:UIAlertControllerStyleAlert];
[alert addAction:[UIAlertAction
actionWithTitle:@"确定"
style:UIAlertActionStyleDefault
handler:^(UIAlertAction *
_Nonnull action) {
[self
shanChunFenLei];
}]];
[alert addAction:[UIAlertAction
actionWithTitle:@"取消"
style:UIAlertActionStyleCancel
handler:^(UIAlertAction *
_Nonnull action) {
}]];
[self
presentViewController:alert
animated:YES
completion:nil];
相关文章推荐
- LeetCode 96:Unique Binary Search Trees
- easyui样式及js导入顺序及刷新回车的问题
- 基于Silverlight/XAML开发嵌入式系统WinCE下应用程序UI
- IOS 16进制颜色字符串转UIColor
- Android多语言适配values文件夹命名
- easyui合并行(同列内容合并)
- IOS UI-滚动视图(UIScrollView)
- iOS UI-文本视图(UITextView)
- poj 1947 Rebuilding Roads 树形背包 ★
- mosquitto 管理常用命令
- UIScrollView配合定时器和手动实现图片轮播无限循环
- PowerBuilder
- 自定义UITableViewCell上的按钮点击事件处理
- 初识android自定义UI
- iOS 代码实现获得应用的版本号(Version/Build)
- Preparing to build session factory with filters : {}
- Arduino和Android通过OTG 通信
- ubuntu下使用quick2wire控制RespberryPi2的I2C
- 【iOS笔记】Xcode中Build Configuration配置使用
- ${pageContext.request.contextPath} JSP取得绝对路径