【深入浅出ios开发】UIActionSheet
来源:互联网 发布:男装淘宝店 编辑:程序博客网 时间:2024/05/22 11:36
①本想花点时间来讲解这玩意的。不过看到了官方文档立马放弃了。
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIActionSheet_Class/
重要的:UIActionSheet已经被IOS8所抛弃。(UIActionSheetDelegate也被摒弃了)如果想闯将并且管理action sheets 在IOS8和以后的版本中可以使用UIAlertController带着preferredStyle的UIAlertControllerStyleActionSheet。
以下是一段使用UIActionSheet的代码。
- (IBAction)logout:(id)sender { UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:@"确定要注销?" delegate:self cancelButtonTitle:@"取消" destructiveButtonTitle:@"确定" otherButtonTitles:nil, nil]; [sheet showInView:self.view];}
0 0
- 【深入浅出ios开发】UIActionSheet
- 【深入浅出ios开发】UIActionSheet
- IOS开发-UIActionSheet
- UIActionSheet操作表单-IOS开发
- IOS开发之自定义UIActionSheet
- iOS开发:UIActionSheet与UIAlertView
- IOS开发之自定义UIActionSheet
- Swift开发IOS-UIActionSheet
- iOS开发-UIActionSheet和UIAlertController
- iOS开发 对话框UIActionSheet和UIAlertView用法
- iOS开发 对话框UIActionSheet和UIAlertView用法
- iOS开发6:UIActionSheet与UIAlertView
- IOS 开发学习十六 UIActionSheet的使用
- ios & UIActionSheet
- IOS UIActionSheet
- IOS UIActionSheet
- 【深入浅出ios开发】NSNotificationCenter
- 【深入浅出ios开发】NSNotificationCenter
- 【Android】Android中ContentProvider组件详解
- mysql中的left join用法 (及多条件查询
- 非阻塞socket服务器示例
- IOS 资料
- C++字符串操作
- 【深入浅出ios开发】UIActionSheet
- 实现一个最小栈的push(int x),pop(),top(),min()方法,要求都是常量时间
- setClickable(false)不起作用
- HDU4664
- 山寨版至理名言
- 什么是MapReduce?
- SQL Server 2008中SQL应用系列及BI学习笔记系列--目录索引
- 【Android动画】之Tween动画 (渐变、缩放、位移、旋转)
- C#中Dictionary的用法