如何自动解除UIActionSheet [英] How to dismiss UIActionSheet automatically

查看:83
本文介绍了如何自动解除UIActionSheet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要求我在哪里显示actionSheet但是如果用户没有通过选择其中一个选项来关闭此操作表,我想通过程序在特定事件上自动关闭它。任何想法的人,我怎么能逐步解雇这个动作表?

I have a requirement where i am showing actionSheet but in case user does not dismiss this actionsheet by selecting one of the option, i want to dismiss this automatically by program on a particular event. Any idea guys, how can i dismiss this actionsheet progratically?

推荐答案

使用:

- (void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated

这篇关于如何自动解除UIActionSheet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆