How can I enable zoom in on UIWebView which inside the UIScrollView?

calendarw picture calendarw · Feb 8, 2010 · Viewed 75.1k times · Source

I have a UIWebView which inside a UIScrollView (scrollview contain another component)

I tried to enable multitouch both on Interface Builder or Programmatic on UIWebView but it still cannot zoom for html, do I need to handle both zoom in at the UIScrollView and UIWebView? Or anything I haven't to set?

Answer

john geshrick picture john geshrick · May 29, 2010

You MUST set scalesPageToFit=YES for any pinching and zooming to work on a UIWebView