【发布时间】:2014-08-20 07:21:20
【问题描述】:
当 ViewController 通过 UIPopoverPresentationController 以 iOS 8 方式呈现 actionSheet (AlertController) 时,ViewController 将其边界缩小到 actionSheet 的大小。
我试图做的是在弹出窗口上显示一个 actionSheet,但我以 iOS 8 的方式来做,我遇到了这种奇怪的情况。
这就是我遇到这种情况的原因”
- 当按下 barButtonItem 时,它会通过 UIPopoverPresentationController 弹出 ViewController。 (如图 1)
- 当按下 ViewController 上的按钮时,它会显示一个 actionSheet
- 然后 ViewController 将其大小缩小到 actionSheet 的大小。 (如图2)
这是整个项目供参考。 https://github.com/allenlinli/ALtryEverything/tree/Q435235 它在“TryAlertOnPopoverOnBarButtonItemOniPad”项目中。
【问题讨论】:
标签: ios objective-c ios8 uialertcontroller