I’m trying get the visible portion of UIImage from an UIImageView. UIImageView takes the entire screen. Pinch & Pan gesture is added to UIImageView. So, User can pan/zoom the imageview. After pan/zoom I want to crop only the visible part of the image view. I’ve tried a number of methods. But it returns me wrong part of image.
Thanks In advance.
Thank you all. I’ve figured out the solution. Here is the code that I used to get the visible portion of the image. (Keep it in your mind that the image was not fully visible when zoomed or pan due to it was taking entire screen)