I want to set a UIImageView with a UIImage and put this imageview inside a UIScrollView to obtain a zoom of this image;
and I want this UIImageView and UIScrollView to fit in the rect at the center of the view…is it possible?
I want to set a UIImageView with a UIImage and put this imageview inside
Share
<UIScrollViewDelegate>UIScrollViewthe size you want for the rectangle at the center of the view. Set the max zoom in the inspector to something bigger than 1. Like 4 or 10.UIImageViewin theUIScrollViewand set it up with whatever image you want. Make it the same size as theUIScrollView.UIImageViewto the.hof your View controller to create anIBOutletfor theUIImageView, call it something clever likeimageView.Add this code:
Run the app and pinch and pan til your heart’s content.