UIActivityViewController iOS8 iPad Crash处理

UIActivityViewController iOS8 iPad Crash处理,第1张

概述在iPhone 上程序一切正常,但独在iPad iOS8的系统上,UIActivityViewController会崩溃,经查阅资料: On iPad the activity view controller will be displayed as a popover using the newUIPopoverPresentationController, it requires that y

在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

总结

以上是内存溢出为你收集整理的UIActivityViewController iOS8 iPad Crash处理全部内容,希望文章能够帮你解决UIActivityViewController iOS8 iPad Crash处理所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1088547.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存