Problem with Objective C UITabBar at bottom of Screen

When poping up an UIAction Sheet infront of a UITabBar I had some problems getting the buttons to correctly react to presses.

The reason for this turned out to be with the UITabBar having the a listener that was a higher priority than the button on the UIActionSheet.

To solve this you have to add the action sheet to the appDelegate like so:

[myActionSheet showInView appDelegate.window];

Posted on July 22, 2009 at 2:10 pm by Alastair Munro · Permalink
In: Iphone · Tagged with: ,

One Response

  1. Written by Chris
    on February 27, 2010 at 4:49 am

    perhaps a better solution if the code is in a viewcontroller (though with the same result) is:

    [myActionSheet showInView:self.view.window];

Leave a Reply