在 xcode 中全屏显示 PDF
我有一个在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在viewDidLoad事件中,
我添加了这一行...
webView.scalesPageToFit = YES;
这迫使它全屏......完美。
In the viewDidLoad event,
I added the line....
webView.scalesPageToFit = YES;
and tht forced it to full screen.... perfect.