简体   繁体   English

如何在QLPreviewController中显示pdf页面缩略图

[英]How do I get pdf page thumbnails to display in QLPreviewController

In iOS 6, I noticed that when I preview a PDF document using the UIDocumentInteractionController, it displays nice looking page thumbnails down the right side of the screen. 在iOS 6中,我注意到当我使用UIDocumentInteractionController预览PDF文档时,它会在屏幕右侧显示漂亮的页面缩略图。 However, if I display the same PDF using the QLPreviewController, those thumbnails do not appear. 但是,如果我使用QLPreviewController显示相同的PDF,则不会显示这些缩略图。

How can I get the QLPreviewController to display thumbnails of PDF pages in the same way that the UIDocumentInteractionController does? 如何让QLPreviewController以与UIDocumentInteractionController相同的方式显示PDF页面的缩略图?

The thumbnails appear for me when I use QLPreviewController using 当我使用QLPreviewController时,缩略图显示给我

[self presentViewController:previewController animated:YES completion:nil];

Have you tried presenting the controller modally? 您是否尝试过以模态方式呈现控制器?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM