Cancel button in UIActionSheet fails when touching bottom half of its frame

Posted by Daniel Vela on February 3, 2011

Touching the “Cancel” button in an UIActionSheet sometimes fails. This happen when touching bottom half of its frame and also you have an UITabBar in your current view.

To solve this problem you must add the UIActionSheet to the tabBar view, as:

[actionSheet showInView:[YourAppDelegate sharedAppDelegate].tabBar.view];  

…or the current tab bar.