UIDocumentInteractionController broken in iOS 8

主宰稳场 提交于 2019-12-05 20:14:53

I have been playing around with the UIDocumentInteractionController and Delegate trying to fix a similar problem, the controller opened-up alright but selecting an application caused it to close without doing anything, my delegate method documentInteractionControllerDidDismissOpenInMenu also run alright afterwards.

In the console i got the notification enabledRemoteNotificationTypes is not supported in iOS 8.0 and later.

It turns out that this problem will accrue when one of these delegate methods is called :

documentInteractionControllerDidDismissOpenInMenu
documentInteractionControllerDidDismissOptionsMenu

(and possibly others, i did not check all of them)

I did not find any comment in the IOS Development Library or the UIDocumentInteractionController.h about these methods not supported for IOS 8.1 but at this point i cant find any other explanation.

Solution :

i replaced documentInteractionControllerDidDismissOpenInMenu with didEndSendingToApplication and it solved the problem for me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!