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):
// 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:
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前端其它相关文章！