如何在Objective-C中显示PDF?

meo*_*n8x 24 pdf objective-c pdf-reader ios

如何在Objective-C中阅读和显示PDF?

Mor*_*ast 26

如果您只想显示它,最简单的方法是将其加载到UIWebView中.


Luk*_*uke 10

如果您只想向用户阅读和显示PDF,就像您的iOS设备上的Mail应用程序在完成所有滚动和缩放时那样,那么我将使用UIDocumentInteractionController.

http://developer.apple.com/library/ios/#documentation/uikit/reference/UIDocumentInteractionController_class/Reference/Reference.html

您可以在我最近的一个问题中找到一些有用的代码:

UIDocumentInteractionController在退出时崩溃

希望这可以帮助.


Pra*_*wal 7

看看这个用于ZoomingPDFViewer的 Apple示例代码(需要iOS Developer会员才能看到此链接).