How can I keep UIActionSheet from being dismissed when background touched?
问题 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 . 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? 回答1: You can achieve this by not using a cancel button. Check this SO post: UIActionSheet in iOS7 dismissing when user taps ANYWHERE on