UIActionSheetDelegate协议中定义的监视方法
2014-12-15 09:08
393 查看
序言:
与UIalertView一样,UIActionSheetZ中也设置了delegate属性,可监视UIActionSheet的各状态。
UIActionSheetDelegate协议中定义的监视方法
与UIalertView一样,UIActionSheetZ中也设置了delegate属性,可监视UIActionSheet的各状态。
方法名 | 调用时机 |
-(void)willPresentActionSheet:(UIActionSheet *)actionSheet | 操作表显示前被调用。 |
-(void)didPresentActionSheet:(UIActionSheet *)actionSheet | 操作表显示后被调用。 |
-(void)actionSheetCancel:(UIActionSheet *)actionSheet | 操作表中被强制关闭时被调用。例如操作表显示时应用程序突然关闭等场合。触摸取消按钮时不调用此方法。 |
-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex | 触摸操作表中的任意按键时被调用。此方法比-(void)actionSheet:(UIActionSheet *)actionSheet willDismissWithButtonIndex:(NSInteger)buttonIndex方法先背掉用 |
-(void)actionSheet:(UIActionSheet *)actionSheet willDismissWithButtonIndex:(NSInteger)buttonIndex | 操作表关闭前被调用 |
-(void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex | 操作表关闭后被调用。操作表显示中应用程序进入睡眠状态时也被调用。 |
相关文章推荐
- UI13_数据解析之图片相关(UIActionSheet,UIImagePickerController, UINavigationController协议方法)
- UIApplicationDelegate协议定义的方法说明
- UIApplicationDelegate协议定义的方法说明
- UIApplicationDelegate协议定义的方法说明
- UIApplicationDelegate协议定义的方法说明
- UIApplicationDelegate协议定义的方法说明
- iOS学习笔记(2)UIWebViewDelegate委托协议定义的方法
- UIApplicationDelegate协议定义的方法说明
- UIApplicationDelegate协议定义的方法说明
- UIApplicationDelegate协议定义的方法说明
- iOS AppDelegate协议方法
- UIActionSheet 按钮不响应点击事件的解决方法
- UIActionSheet设置delegate为self时出现警告
- Delegate,UIActionSheet,UIAlertView
- UIActionSheet 按钮不响应点击事件的解决方法
- UIActinSheet和UIActionSheetDelegate
- HTTP协议定义的八个标准方法(动作)
- UIActionSheet 按钮不响应点击事件的解决方法
- iphone通过UIActionSheetDelegate实现警告