UIDocumentInteractionController opening pdf in iBooks crashes

爱⌒轻易说出口 提交于 2019-12-07 07:47:28

The use of a UIDocumentInteractionController requires that you keep a reference around until it is complete. This means you should use an instance variable, not a local variable. Implement the proper delegate methods so you can reset the ivar when you are done with the controller.

Enabling zombies will help debug such an issue. Most likely you will see that a message is being sent to a deallocated object (your controller).

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