ios - Zoom two UIScrollViews synchronously. -


i have 2 uiscrollviews. both scroll views contain image. now, want zoom second scroll view programmatically if zoom in first scroll view manually. using -(uiview *)viewforzoominginscrollview:(uiscrollview *)scrollview method manually zoom first scroll view. second scroll view should zoomed same point , scale. how can achieve this?

try in uiscrollviewdelegate method:

override func scrollviewdidscroll(scrollview: uiscrollview){     otherscrollview.contentoffset = scrollview.contentoffset     otherscrollview.zoomscale = scrollview.contentoffset } 

Comments