UIActionSheet单击/点击外部时关闭 [英] UIActionSheet Dismiss when click/ tap outside

查看:163
本文介绍了UIActionSheet单击/点击外部时关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是iPhone开发的新手。任何人都可以告诉我当我点击它之外如何解雇UIActionSheet控件吗?

I'm novice in iPhone development. Can anyone tell me how to dismiss UIActionSheet control when i tapped outside of it?

在我的actionSheet中我只有datePicker控件并且它弹出标签栏控件现在是什么我希望每当用户点击它之外,它应该忽略而不是使用actionSheet的取消按钮。
问候

In my actionSheet i have only datePicker control and it pops up over tab bar control now what i want whenever user click outside of it, it should dismiss instead of using actionSheet's cancel button. Regards

推荐答案

您可以参考以下链接:
如何在你点击它以外的地方时解雇你的uiactionsheet?

Hi refer below link: How to make a uiactionsheet dismiss when you tap outside eg above it?

http://splinter.com.au/how-to-allow-closing-a-actionsactions-by-tappi

这篇关于UIActionSheet单击/点击外部时关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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