您的位置:首页 > 产品设计 > UI/UE

UIActionSheetDelegate协议中定义的监视方法

2014-12-15 09:08 393 查看
序言:

与UIalertView一样,UIActionSheetZ中也设置了delegate属性,可监视UIActionSheet的各状态。



UIActionSheetDelegate协议中定义的监视方法

方法名

调用时机
-(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操作表关闭后被调用。操作表显示中应用程序进入睡眠状态时也被调用。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: