Reputation: 109
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
Reputation: 1441
That worked for me:
UIWebView *webView = [[UIWebView alloc] initWithFrame:self.bounds.frame];
webView.scalesPageToFit=TRUE;
Upvotes: 0
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