【发布时间】:2014-08-07 03:34:55
【问题描述】:
在 iOS 7 中,我通过 "showFromRect" 显示 actionSheet:
[actionSheet showFromRect:rect inView:view animated:YES];
但在 iOS 8 中,这不起作用。他们替换了实现并建议我们使用 UIAlertController。那么如何像弹出框一样显示这个actionSheet呢?
【问题讨论】:
-
我试过使用 UIPopoverController,里面有 UIAlertController,还是不行。 UIPopoverController *popOverController = [[UIPopoverController alloc] initWithContentViewController:alertController];
标签: uipopovercontroller ios8 uiactionsheet actioncontroller