Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue with UIActionSheet

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?

like image 878
Joaquin McCoy Avatar asked Dec 16 '10 02:12

Joaquin McCoy


2 Answers

Try this, it worked for me perfectly:

[actionSheet showInView:[UIApplication sharedApplication].keyWindow]; 
like image 135
VSN Avatar answered Sep 22 '22 17:09

VSN


You could try [MyActionSheet showInView:super.view]; or if you have a UITabBar or UIToolbar then, as it suggests, you can use [MyActionSheet showFromTabBar:self.tabBarController.tabBar]; or [MyActionSheet showFromToolBar:self.toolbar];

like image 23
Fred Avatar answered Sep 20 '22 17:09

Fred