UIActivityViewController iOS8 iPad Crash处理
来源:互联网 发布:php curl 文件大小 编辑:程序博客网 时间:2024/04/28 14:28
在iPhone 上程序一切正常,但独在iPad iOS8的系统上,UIActivityViewController会崩溃,经查阅资料:
On iPad the activity view controller will be displayed as a popover using the newUIPopoverPresentationController, it requires that you specify an anchor point for the presentation of the popover using one of the three following properties:
- barButtonItem
- sourceView
- sourceRect
In order to specify the anchor point you will need to obtain a reference to the UIActivityController's UIPopoverPresentationController and set one of the properties as follows:
activityViewController.popoverPresentationController.sourceView = parentView;// 或者 activityViewController.popoverPresentationController.barButtonItem = _actionButton;// 或者SourceRect(不再举例)
资料地址: http://stackoverflow.com/questions/25644054/uiactivityviewcontroller-crashing-on-ios8-ipads
0 0
- UIActivityViewController iOS8 iPad Crash处理
- ipad 上如何弹出UIActivityViewController
- ios8.0 ipad UIImagePickerController
- uinavigationcontroller crash in ios8
- UIActivityViewController
- UIActivityViewController
- UIActivityViewController
- 8.0.x 系统上调用 UIActivityViewController 必现 crash
- crash处理
- iOS8 在ipad 上面显示UIAlertController
- iOS8 iPAD上弹出所谓的ActionSheet
- ios8 下iPad调用相册的方法!
- iphone/ipad crash文件分析方法
- iPad 6.0 Simulator 调用照片库Crash
- iphone/ipad crash文件分析方法
- iOS iPad使用UIAlertController crash问题
- iPad 多屏处理
- 不得已的crash处理
- 深入理解PHP原理之Opcodes
- XCODE6修改工程名
- 移动终端浏览器初始设置apple-mobile-web-app-capable(转)
- Flash CS4运行时提示:Java运行时环境初始化时出现错误。您可能需要重新安装 Flash。解决方案
- error LNK2019: 无法解析的外部符号
- UIActivityViewController iOS8 iPad Crash处理
- SharePoint 2013 Nintex Workflow 工作流帮助(九)
- 排序算法(五):计数排序与非比较排序
- 用Maven构建Hadoop项目
- 软件开发文档总集
- ITextView如何关闭键盘
- Eclipse去除js(JavaScript)验证错误
- Android系统的架构
- Sqoop的一些使用心得