UIDocumentInteractionController在设备上崩溃以获取大图像

时间:2011-08-09 12:25:30

标签: iphone ipad quicklook

我使用UIDocumentInteractionController在iPad上快速查看(4.3.3)。

NSURL *url = [NSURL fileURLWithPath:path];
self.doc = [UIDocumentInteractionController interactionControllerWithURL:url];
self.doc.delegate = self;
[self.doc presentPreviewAnimated:YES];

这适用于所有支持的类型和jpg图像(~2000x2000像素)。然后我试着快速查看jpg图像6000x6000 px并发生了一条消息:

[Switching to process 11779 thread 0x0]
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J3)/Symbols/System/Library/Frameworks/QuickLook.framework/DisplayBundles/Image.qldisplay/Image (file not found).
warning: No copy of Image.qldisplay/Image found locally, reading from memory on remote device.  This may slow down the debug session.

模拟器上的大图像工作正常。 Quicklook.framework处于构建阶段。什么原因? 大图像尺寸= 426Kb(压缩jpeg)。

UPD:iPad2上的同样故事

UPD2:我尝试使用UIWebView,没有崩溃但没有理想的解决方案

1 个答案:

答案 0 :(得分:1)

UIDocumentInteractionController经常与中等大小的文件崩溃。正如4.3.3所述,您可以尝试QLPreviewController