Viken Ong
Viken Ong

Reputation: 109

pinchable webview

I have a webview, which show a link to a specific website, but the display is fixed, it feels like browsing the web from old style mobile, n not iphone. Is there a way to make a webview pinchable? Since the webview in my apps is not pinchable, which mean I can't zoom it in or out. Any help is appreciated. Thanx in advance.

Upvotes: 0

Views: 316

Answers (2)

BGS
BGS

Reputation: 1441

That worked for me:

UIWebView *webView = [[UIWebView alloc] initWithFrame:self.bounds.frame];
webView.scalesPageToFit=TRUE;

Upvotes: 0

MCannon
MCannon

Reputation: 4041

You need to make sure that scale pages to fit is checked in IB, and that multi-touch & user interaction are enabled.

Upvotes: 1

Related Questions