Instructions:
-
Copy the methods into your base viewController Class viewImage:view:viewBounds: dismissImageView
-
Add the following declarations to the header files UIImageView *popupImageView; UIView *popupImageViewContainer; CGRect savedRect;
-
Add the UIScrollViewDelegate protocol to your viewController
-
Copy the following methods into the viewController scrollViewDidEndZooming:withView:atScale:(float) viewForZoomingInScrollView:
-
Call the viewImage:view:viewBounds class with the image, containerView and frame of the image when you want to present an image
Known Issues: Only supports portrait mode