UIDocumentInteractionController-读取文档时出错 [英] UIDocumentInteractionController - Error while reading the document

查看:122
本文介绍了UIDocumentInteractionController-读取文档时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用UIDocumentInteractionController在应用程序中预览文档。但是,有时文档显示得很好,而其他时候,交互控制器会显示一条消息读取文档时出错。我知道这与文档无关,因为同一文档有时会显示,有时却不会。

I preview docs in my app using a UIDocumentInteractionController. However, sometimes documents show fine, other times the interactioncontroller displays a message "Error while reading the document". I know it is not an issue with the document, because the same document sometimes shows and sometimes doesn't.

重新启动设备可以暂时解决此问题-因此,这似乎是内存问题,但奇怪的是我没有收到任何内存警告。请问如何使它可靠地工作的任何想法?

Restarting the device solves this problem temporarily - so it would appear to be a memory issue, but strangely I am not getting any memory warnings. Any ideas on how to get this to work reliably please?

注意:


  1. 文档交互控制器预览被关闭,
    控制器在完成时释放,以确保不会在内存中保留先前的预览

  2. 我在使用quicklook控制器时遇到了相同的问题


推荐答案

经过大量测试,看来此问题仅限于iPad1。唯一的解决方法是重新启动。

After much testing it appears this issue is limited to iPad 1. The only workaround is a restart.

这篇关于UIDocumentInteractionController-读取文档时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆