It looks like you're new here. If you want to get involved, click one of these buttons!
rramnel wrote: »
I am loading a webpage inside a UIWebView. But I am unable to zoom/pinch. Is zooming functionality already built in inside the UIWebView class? Or do I need to setup a UIScrollView and setup the UIWebView inside it? Any ideas on how to proceed...
spoolup wrote: »
can this function be done selectively?
ie. diable pinch/zoom for one of the pages loaded? and leave it active for the rest?
UIWebView *web = ...
//set zoom here
UIScrollView *sv = [web.subviews objectAtIndex:0];
[sv setZoomScale:0.0 animated:YES];
Darkin wrote: »
Make sure to have the UIWebView Selected on interface builder and then enable "Scale to fit" at the very top of the list of properties. The pinch and zoom should work after that. Might also want to make sure that "multiple touches" is also enabled both on the UIWebView and the main UIView.