Issue with UIActionSheet

Joaquin McCoy picture Joaquin McCoy · Dec 16, 2010 · Viewed 23.7k times · Source

When I run my app and I click button for actionsheet appears this:

Presenting action sheet clipped by its superview. Some controls might not respond to touches. On iPhone try -[UIActionSheet showFromTabBar:] or -[UIActionSheet showFromToolbar:] instead of -[UIActionSheet showInView:].

How can I fix?

Answer

VSN picture VSN · Jul 23, 2012

Try this, it worked for me perfectly:

[actionSheet showInView:[UIApplication sharedApplication].keyWindow];