Reputation: 92
I know this question has been asked in various ways before, but I want to put out there the issue I am trying to solve. I am loading Google maps on a UIWebview instead of using the Mapkit. There is a restraint on zooming the map .Therefore , I want to restrict the user from using the double-tapping or pinching to zoom which happens to be the default behaviour of the UIWebview. I am providing separate zoom-in/out buttons for the app user's use.Can anyone provide a solution for the same. Using iOS6 SDK.
webView.multipleTouchEnabled = NO;
or
webView.scalesPageToFit = NO;
The above hasn't worked for me.
Upvotes: 3
Views: 1770
Reputation: 1414
You will have to inject html in order for this to work I think.
<meta name="viewport" content="width=1000px; user-scalable=0;" />
Upvotes: 2