扫码关注官方订阅号
这段代码在iphone上一点问题也没有 ipad上就不行了直接报错求大神解答啊!!
业精于勤,荒于嬉;行成于思,毁于随。
请参考 http://www.jianshu.com/p/83f97b5246ff
iPad上AlartSheet是要有一个挂靠位置的
UIPopoverPresentationController *popover = alertController.popoverPresentationController;if (popover) {
popover.barButtonItem = self.navigationItem.rightBarButtonItem;
}
[self presentViewController:alertController animated:YEScompletion:^{
}];添加一下这段代码,需要指定一下iPad上popover的展示位置!可以改为sourceView或者sourceRect!详情参考http://m.shaobozheng.icoc.cc/nd.jsp?id=24&groupId=0
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
请参考 http://www.jianshu.com/p/83f97b5246ff
iPad上AlartSheet是要有一个挂靠位置的
UIPopoverPresentationController *popover = alertController.popoverPresentationController;
if (popover) {
}
[self presentViewController:alertController animated:YEScompletion:^{
}];
添加一下这段代码,需要指定一下iPad上popover的展示位置!可以改为sourceView或者sourceRect!
详情参考http://m.shaobozheng.icoc.cc/nd.jsp?id=24&groupId=0