In iOS 7, I show actionSheet by \"showFromRect\":
[actionSheet showFromRect:rect inView:view animated:YES];
But in iOS 8, this doesn\'t wor
I also meet this problem like you, but my case is that I show a UIActionSheet
in UIWindow.view
on the iPad device, and the UIWindow
doesn't set rootViewController
.
So, I found, if we show a UIActionSheet
in a window whose rootViewController
equals to nil
, the UIActionSheet
could not show out.
My solution is to set
window.rootViewController = [[UIViewController alloc] init];
then,
[actionSheet showFromRect:rect inView:window.rootViewController.view animated:YES].
Hope this will help you!