K
K
kopch2014-05-15 17:31:42
iOS
kopch, 2014-05-15 17:31:42

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"/>

Load code:
- (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

1 answer(s)
D
Dmitry Avvakumov, 2014-07-24
@kopch

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 question

Ask a Question

731 491 924 answers to any question