Answer the question
In order to leave comments, you need to log in
How to show full page with fixed width and height in UIWebView?
I can not somehow form the right request for Google. I have a local page loaded into the UIWebView, inside which is a wrapper-div (max-width: 740px; max-height: 740px;). How to show it completely in uiwebview, without zoom and other manipulations by the user? Thank you.
Page meta:
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
- (void)viewDidLoad
{
[super viewDidLoad];
NSURL *url = [NSURL fileURLWithPath:;
[_webView loadRequest:[NSURLRequest requestWithURL:url]];
}
Answer the question
In order to leave comments, you need to log in
Option 2:
1. Try
it 2. Create a webVIew with dimensions of 740x740 px. Set scrollEnabled = NO to it. And Paste inside UIScrollView to fit the screen.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question