在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 sourceRectIn 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处理所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)