Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如何在QLViewController中显示pdf页面缩略图_Ios_Objective C_Pdf_Uidocumentinteraction_Qlpreviewcontroller - Fatal编程技术网

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

Ios 如何在QLViewController中显示pdf页面缩略图,ios,objective-c,pdf,uidocumentinteraction,qlpreviewcontroller,Ios,Objective C,Pdf,Uidocumentinteraction,Qlpreviewcontroller,在iOS 6中,我注意到当我使用UIDocumentInteractionController预览PDF文档时,它会在屏幕的右侧显示美观的页面缩略图。但是,如果使用QLPreviewController显示相同的PDF,则不会显示这些缩略图 如何让QLViewController以与UIDocumentInteractionController相同的方式显示PDF页面的缩略图?当我使用QLViewController时,缩略图会为我显示 [self presentViewController:p

在iOS 6中,我注意到当我使用UIDocumentInteractionController预览PDF文档时,它会在屏幕的右侧显示美观的页面缩略图。但是,如果使用QLPreviewController显示相同的PDF,则不会显示这些缩略图


如何让QLViewController以与UIDocumentInteractionController相同的方式显示PDF页面的缩略图?

当我使用QLViewController时,缩略图会为我显示

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

您是否尝试过以模式显示控制器?

我正在以非模式方式使用QLVeviewController,但它们没有显示。我猜它们只有在以模式呈现时才会显示。我会继续接受你的答案。我记得我在某个地方读到过,当他们以某种方式呈现时,他们会显示出来。我不知道我在哪里读到的,但我想它是在苹果的文档中的某个地方。好啊我收回这句话。我想我这么问是因为这是我展示它的方式。它在iPad上工作,但在iPhone上没有显示缩略图。