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.

3 Responses to Quick Hits: UIActionSheet cancel button strange behaviour

  1. Вот это пост!

  2. Alistair says:

    Thanks!

  3. adobe says:

    Hi, just wanted to say, I loved this post.
    It was funny. Keep on posting!

    Also visit my site :: adobe

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">