I have 2 UIScrollViews side by side, and a feature I'm working on is the ability to pinch and zoom on 1 UIScrollView, and have the other one next to it respond in the EXACT same way as the one I'm tapping. Of particular interest is zooming in on the same area that the other UIScrollView is zooming in on. It's one thing to just set the zoomScale, but it's another to mimic the zoom behavior exactly.
How can I do this?
Use following method it will help you,
- (void)zoomToRect:(CGRect)rect animated:(BOOL)animated
In above method you have pass only rect of your view it will zooming inside that rect.
for additional information please read documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With