Trying to get an html page to appear in its entirety in iOS simulator

I have an html page that I am trying to display via a `UIWebView` inside my iOS app. Everything is working fine, except I can't view the entire page on the screen. I only see the top left corner, and then I have to scroll either down or to the right to view the remaining page. I do want to point out that the image that is on the HTML page is the size of a full page, which is most likely the reason why the entire HTML page does not fit on the iOS screen. Here is my iOS code (which is very straightforward): - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"arabic" ofType:@"html"] isDirectory:NO]]]; } and here is the HTML code I am trying to display: My Title
Can anyone see what I am doing wrong, and what I can do to view the entire page on the screen?

以上就是Trying to get an html page to appear in its entirety in iOS simulator的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » HTML5 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏