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

前端 未结 4 1385
你的背包
你的背包 2020-12-04 10:21

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

I tried to enable multitouch both on Interfac

4条回答
  •  青春惊慌失措
    2020-12-04 10:56

    You need to implement the viewForZoomingInScrollView method in your controller, or zooming won't do anything. (I don't really know why this should be needed, but there you go.)

    For detailed information, see http://developer.apple.com/iphone/library/documentation/WindowsViews/Conceptual/UIScrollView_pg/ZoomZoom/ZoomZoom.html.

提交回复
热议问题