I have a UIScrollView page that views multiple full-screen images. I mosaic pages, queues, and reorienting UIViews dynamically, like scrolling page views through a collection of images, based on Apple sample code.
I have a toolbar button: scrollRectToVisible: animated: move the UIScrollView to a specific image. This works great.
The problem is that if you then make one touch in the UIScrollView, it scrolls back to the page that it was showing before the button was touched and the call to scrollRectToVisible: animated: scrolls the view.
If your touch moves, the UIScrollView scrolls as expected, and subsequent touches do not cause the UIScrollView to return to the original page.
How to prevent this behavior?
thanks
Jk
source share