Toncean Cosmin
Toncean Cosmin

Reputation: 535

UIWebView keeps zooming on iOS 5

I have a older app where in a UIWebView I loaded a movie from a URL. It worked just fine. But now on iOS 5 ... when I enter the ViewController containing the UIWebView ... the thumbnail of the video starts "growing" like someone would zoom on it and it doesn't stop.

NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.link_go_here"]];     

[infoWebView loadRequest:request];

(it's a universal app ... the same happens on both devices)

Upvotes: 0

Views: 406

Answers (1)

Rasmus Styrk
Rasmus Styrk

Reputation: 1346

Have you set the infoWebView.scalesPageToFit = NO; property of the webview? You could also try to set

<meta name='viewport' content='initial-scale=1.0,maximum-scale=1.0'/>

of the html page your loading.

Upvotes: 1

Related Questions