我们在iOS8中是否必须使用UIAlertController?还是可以继续使用UIActionSheet?
我不想为了iOS 8的兼容性而对我们的代码进行大规模更改,但当在iPad上使用UIActionSheet时,我遇到了几个问题。
例如,当使用UIActionSheet时,我会遇到以下异常:
UIPopoverPresentationController (<_UIAlertControllerActionSheetRegularPresentationController: 0x7c57bf90>) should have a non-nil sourceView or barButtonItem set before the presentation occurs.
我知道使用新的UIAlertController更好,但是是否有任何解决方法可以继续使用UIActionSheet?
另外,在UIActionSheet实际显示的地方(没有例外),它包含一个箭头+它不像以前(iOS7)那样居中 - 我正在使用showInView(也尝试过使用showFromRect,但结果相同)。