【深入浅出ios开发】UIActionSheet
来源:互联网 发布:淘宝亏钱 编辑:程序博客网 时间:2024/05/22 13:58
①本想花点时间来讲解这玩意的。不过看到了官方文档立马放弃了。
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 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
- Java中普通代码块,构造代码块,静态代码块区别及运行顺序(子类,父类中运行顺序)
- 大整数乘法
- Java中getResourceAsStream的用法
- Catch That Cow
- JSP与Servlet之间传值GOOD
- 【深入浅出ios开发】UIActionSheet
- Qt中漂亮的几款QSS
- ISO 8583协议-银行交易的标准
- 【深入浅出IOS开发】Xcode6如何设置storyboard中Controller的开始箭头
- js实例教程一:用js实现竖的隐藏菜单
- K - 迷宫问题
- Android消息驱动机制Handler+Looper+Thread+MessageQueue
- linux grep命令
- Find The Multiple