1

I use below code for getting zoom image in the scroll view.

  • (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView{ return photo; }

but i have problem when i click on next button and set new image it also zoomed. so it is possible the the next image is normal size. when i click on next button.

0

1 Answer 1

0

Try reseting the Zoom after the next scroll

- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{

   [scrollView zoomToRect:(CGRect)rect animated:(BOOL)animated]
    // or
   [scrollView setZoomScale:(float)scale animated:(BOOL)animated]

}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.