在 xcode 中全屏显示 PDF

发布于 2024-10-05 15:08:49 字数 192 浏览 0 评论 0原文

我有一个在 iPad 上运行的 xcode 应用程序。

它是一个包含 UIWebView 对象的控制器。

PDF是从互联网上下载的,没有任何问题,我只需要PDF在屏幕上横向显示即可。

目前,PDF 在显示时仅使用屏幕的最左半部分。我需要它覆盖整个窗口。

感谢您的帮助,

保重
托尼

I have an xcode application that runs on the iPad.

It is a controller that holds a UIWebView object.

The PDF is downloaded from the internet with no problems, I just need the PDF to be displayed all the way across the screen in landscape orientation.

Currently, the PDF only uses the left most half of the screen when it is displayed. I need it to span the entire window.

Thanks for your help

Take care
Tony

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

罗罗贝儿 2024-10-12 15:09:04

在viewDidLoad事件中,
我添加了这一行...

webView.scalesPageToFit = YES;

这迫使它全屏......完美。

In the viewDidLoad event,
I added the line....

webView.scalesPageToFit = YES;

and tht forced it to full screen.... perfect.

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