Iphone - strange error between UIActionSheet and UITabBar

In my tab application, I call the UIA table from an action called with the button in the title bar of the navigation controller.

The UIActionsheet is functioning normally, with the exception of the lower half of the cancel button, which, oddly enough, does not respond to touch in the iPhone Simulator. The bottom half of the cancel button is where the UITabBar is, and therefore this is probably the problem.

Any ideas?

alt text http://img12.imageshack.us/img12/2166/screenshot20100119at236.png

Decision

My decision was from the first answer. Here is my working code example

UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:message delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"OK" otherButtonTitles:nil]; actionSheet.actionSheetStyle = UIActionSheetStyleDefault; [actionSheet showInView:[UIApplication sharedApplication].keyWindow]; [actionSheet release]; 
+4
source share
1 answer

It looks like a UIActionSheet to me ...

In any case, you should show the action bar as a sub-item of the application window, and not the current view.

 UIActionSheet *actionSheet = [[UIActionSheet alloc] init...]; // ... [actionSheet showInView:[UIApplication sharedApplication].keyWindow]; 
+19
source

All Articles