QLPreviewController 模态视图中缺少 UIToolbar

发布于 2024-12-15 19:14:45 字数 278 浏览 3 评论 0原文

我创建了一个带有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一场春暖 2024-12-22 19:14:45

您可以通过将预览控制器嵌套在 UINavigationController 中来实现此目的,并在必要时将其 toolbarHidden 属性设置为 NO

然后呈现导航控制器。

You can probably achieve this by nesting the preview controller inside a UINavigationController, and if necessary setting its toolbarHidden property to NO.

Then present the navigation controller.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文