I have an UIImage
captured from the camera with UIImagePickerController
.
Now after the user clicks on it, I'd like it to show full screen and be able to to zoom it in and out using pinch gestures and also the double tap gesture to zoom in a particular area. In other words, I'd like to emulate what the ios's default image browser does.
I display the captured image in an UIImageView
with:
self.imageView.contentMode = UIViewContentModeScaleAspectFill;
which makes the image go full screen. But how do I implement zooming. Do I need to do it from scratch using gesture recognizers? Or maybe there's a default image display view with all that implemented I am not aware of?