4
A
回答
2
使用的动作片,像这样:
/* present a dialog */
-(void)showDialog {
loadingActionSheet = [[UIActionSheet alloc] initWithTitle:@"Something was saved!" delegate:nil cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:nil];
[loadingActionSheet showInView:self.view];
[NSTimer scheduledTimerWithTimeInterval:1.5f target:self selector:@selector(closeActionSheet:) userInfo:nil repeats:NO];
}
/* close the actionsheet */
-(void)closeActionSheet:(id)sender {
[loadingActionSheet dismissWithClickedButtonIndex:0 animated:YES];
}
在头定义UIActionSheet *loadingActionSheet;
,并使用@property
& @synthesize
。
您还需要在页眉中实施UIActionSheetDelegate
。
相关问题
- 1. 没有弹出对话框的工作簿保存弹出要求另存为
- 2. jquery mobile - MVC:如何保存弹出对话框中的输入
- 3. 如何获得一个保存到excel对话框弹出?
- 4. 如何保存一个已存在于NHibernate会话中的瞬态对象?
- 5. 弹出对话框
- 6. 在模态对话框弹出后启动长进程
- 7. Ajax登录动态弹出对话框
- 8. 居中jQuery模态对话框弹出
- 9. 保存对话框应在本地下载/保存文件时弹出
- 10. 警报对话框弹出后期
- 11. 如何使对话框,在第二次运行弹出,之后
- 12. 如何在MFC中将对话框保存为对话框
- 13. 另存为对话框不弹出
- 14. jQuery弹出对话框在AJAX不工作后关闭
- 15. 如何弹出Android对话框
- 16. 如何关闭弹出对话框?
- 17. 如何添加弹出对话框?
- 18. 如何弹出“连接到”对话框?
- 19. 快速操作对话框/弹出android系统
- 20. “完成操作使用”对话框弹出时,它不应该
- 21. 对话框操作
- 22. 如何制作“不要再问我”对话框弹出框? Android
- 23. android:弹出菜单,弹出对话框
- 24. TideSDK弹出“保存到对话框”onclick <a href="">
- 25. 如何在提交后保留模态对话框?
- 26. 保存对话框
- 27. 保存对话框
- 28. 刷新页面“OK”弹出javascript对话框后弹出
- 29. 如何在对话框类上保存实例状态?
- 30. 对话框的Android保存状态