在webview上显示HTML页面以适应内容
我正在为 iPhone 和 iPad 开发一个应用程序。我采用了 UIViewController
并添加了一个子视图 UIWebView
,我需要在其中显示 html 页面。
我能够在 webview 上显示 html 页面,但问题是 html 页面不适合 webview。我尝试过:
webview.scalesPageToFit = YES;
当我完成此操作后,数据显示的时间非常短。
谁能帮我解决这个问题吗?
I am doing an application for both iPhone and iPad. I have taken a UIViewController
and added a subview UIWebView
where I need to dipslay html pages.
I am able to display the html page on the webview, but the problem is the html page doesn't get fit into the webview. I tried with :
webview.scalesPageToFit = YES;
When I have done this, the data is appearing in veryshort.
Can anyone Kindly help me to sort out this problem ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在您的 HTML 页面中尝试一下,
Try this in your HTML page,