UIDocumentInteractionController

UIDocumentInteractionController

本文介绍了UIDocumentInteractionController无法在iPad模拟器中工作(XCode 3.2.3)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

UIDocumentInteractionController 似乎在iPad模拟器中无法正常运行(iPhone模拟器4.0版,随附XCode 3.2.3,使用iOS版本3.2)。

The UIDocumentInteractionController appears to be non-functional in iPad Simulator ("iPhone Simulator" version 4.0, shipping with XCode 3.2.3, using iOS Version 3.2).

我有一个简单的示例代码,使用 UIDocumentInteractionController 来展示PDF预览。它适用于设备。在iPad上 presentPreview 只返回NO,不会调用 UIDocumentInteractionController的委托方法。

I have a simple sample code presenting a PDF preview using UIDocumentInteractionController. It works on the device. On iPad presentPreview just returns NO, the UIDocumentInteractionController's delegate methods are not invoked.

任何提示如何使它工作?

Any hint how to make it work?

推荐答案

在此确认相同的行为:调用 - (BOOL)presentPreviewAnimated:在模拟器上返回 NO 但在设备上运行。感谢您指出这一点,我花了两个小时一次又一次地检查我的代码。到目前为止还没有解决方案。

Confirming the same behaviour over here: calling - (BOOL)presentPreviewAnimated: returns NO on the simulator but works on the device. Thanks for pointing this out, I just spent two hours going over my code again and again. Got no solution so far.

这篇关于UIDocumentInteractionController无法在iPad模拟器中工作(XCode 3.2.3)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-23 05:38