iOS iPad使用UIAlertController crash问题
在iPad上直接使用类型为.sheet 的UIAlertController,在presentg的时候会直接crash
解决方案:添加UIalertController的sourceView(表明着歌alert是那个View弹出来的)
swift代码:
if alertVC.popoverPresentationController != nil {
ale
原创
2017-11-17 14:42:27 ·
2078 阅读 ·
0 评论