QLPreviewController 模态视图中缺少 UIToolbar
我创建了一个带有 PDF 文档视图的模态 QLPreviewController:
[self presentModalViewController:preview animated:YES];
但是它在控制器视图的底部缺少 UIToolbar。 我曾想过自己提供工具栏;但我必须等到 PDF 加载后才能添加到控制器视图中的基础。必须有一种更简单/标准的方法来提供工具栏。
有没有一种简单的方法来提供一个工具栏,我可以用它来从此模态 QLPreviewController 进行导航?
I've created a modal QLPreviewController with view of a PDF doc:
[self presentModalViewController:preview animated:YES];
However it's missing a UIToolbar at the base of the controller's view.
I had thought of supplying the toolbar myself; but I would have to wait till the PDF is loaded before adding to the base within the controller's view. There must be a simpler/standard way to provide a toolbar.
Is there a simple way to supply a toolbar that I can use to navigate from this modal QLPreviewController?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过将预览控制器嵌套在
UINavigationController
中来实现此目的,并在必要时将其toolbarHidden
属性设置为NO
。然后呈现导航控制器。
You can probably achieve this by nesting the preview controller inside a
UINavigationController
, and if necessary setting itstoolbarHidden
property toNO
.Then present the navigation controller.