Quick Hits: UIActionSheet cancel button strange behaviour

I just got bit by this and fixed it thanks to this StackOverflow post.

http://stackoverflow.com/questions/1197746/uiactionsheet-cancel-button-strange-behaviour

Long story short, if your launch an action sheet in a view that lives in a UITabBarController, the “hit” box for the cancel button gets shifted in a VERY STUPID WAY!

The solution is to reference the view you’re displaying in by the UITabBarController like this:

[sheet showInView:self.parentViewController.tabBarController.view];

Freaking WOW! Thanks a heap, Apple!

*grumble grumble*

Share
This entry was posted in iPhone, Quick Hits and tagged , , . Bookmark the permalink.

One Response to Quick Hits: UIActionSheet cancel button strange behaviour

  1. Alistair says:

    Thanks!

Comments are closed.