Search code examples
uiscrollviewuiimageviewzoomingpinchzoom

UIImageView in UIScrollView, zooming is jittery


I have a UIImageView in a UIScrollview. I used the instructions in Apple's docs.

I set minimum and maximum zoom scales. (0.5 and 6.0). I set the delegate to self.

I returned the image view in viewForZoomingInScrollView. However I don't know what to do in scrollViewDidEndZooming.

The result I am having is a jittery zoom and not consistent. It is just not behaving like the photo gallery app.

Am I missing something?


Solution

  • This is the only solution that I found to work flawless. It includes double tap and two finger gestures to zoom in and out. http://www.raywenderlich.com/10518/how-to-use-uiscrollview-to-scroll-and-zoom-content