Zoom in and Zoom out Pinch Gesture Recognizer

Hi All ! I will show you how to  Pinch zoom In / Zoom Out over UIImageView,UIViewController ..etc with use of the UIPinchGestureRecognizer.User can zoom in/out view and set the UIImage and any controller over their.

Following Code for the viewcontroller.h file


Following Code for the viewcontroller.m file

In  viewDidLoad method use for the initialize image view and UIPinchGestureRecognizer.

And Accessing the zoom in/out method for scaling the image view this also use into UIViewController Also.


Leave a Reply

Your email address will not be published. Required fields are marked *