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?
Try this, it worked for me perfectly:
[actionSheet showInView:[UIApplication sharedApplication].keyWindow];
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];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With