当背景触及时,如何防止UIActionSheet被解雇? [英] How can I keep UIActionSheet from being dismissed when background touched?
本文介绍了当背景触及时,如何防止UIActionSheet被解雇?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
UIActionSheet的默认行为曾经是触及背景的 不解雇它,实际上什么也没做。但是iOS 7触摸背景相当于按 cancelButton
。
The default behavior for the UIActionSheet used to be that touching the background did not dismiss it, and in fact did nothing. But with iOS 7 touching the background is equivalent to pressing the cancelButton
.
我正在修改一些需要保持iOS 6行为的软件。如何通过解除操作表来保持背景的触及?
I'm modifying some software that needs to be kept to the iOS 6 behavior. How can I keep touches of the background from dismissing the action sheet?
推荐答案
您可以通过不使用取消按钮来实现此目的。
You can achieve this by not using a cancel button.
检查此SO帖子:
iOS7中的UIActionSheet因用户点击iPhone上的任何地方而被解雇
这篇关于当背景触及时,如何防止UIActionSheet被解雇?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文