0
votes

Our application contains UIWebview which displays a HTML page that uses touch events for the display of some images. The problem is with zooming HTML content. When the user touches the screen the html elements process it, and prevent default zooming behavior of the UIWebView. But I need both features. How can I solve the problem? Please help me. Thanks in advance.

1
is your concern only limited to zooming of UIWebView which displays some HTML content ? - Rahul Sharma
please send your code to me... so that i can help you - Melbourne
Problem was with in the java script Library-the use event.preventDefault() method. If this method is called, the default action of the event will not be triggered. Thanks for your helpful mind. - Neo

1 Answers

2
votes

Hi You need to turn on the Scale Page to Fit property of WebView to YES

You can do this from Interface builder as follows enter image description here

or you can do the same by

[webView setScalesPageToFit:YES];

Hope it helps.