I have several UIScrollView on the page. You can scroll them yourself or lock them together and scroll them as one. The problem occurs when they are locked.
I use UIScrollViewDelegate and scrollViewDidScroll: to track movement. I request a contentOffset from a UIScrollView that has been modified, and then reflect the changes in other scroll views by setting their contentOffset property to match.
Great .... except that I noticed a lot of extra calls. Programmatically changing the contentOffset my scroll views triggers the scrollViewDidScroll: delegate method to call. I tried using setContentOffset:animated: instead, but I'm still getting a deletion trigger.
How can I programmatically modify my programmatic content objects so as not to trigger scrollViewDidScroll: :?
Implementation notes .... Each UIScrollView is part of a custom UIView that uses a delegation pattern to call back to the representing subclass of the UIViewController , which handles the coordinates of various contentOffset values.
ios uiscrollview uiscrollviewdelegate
DBD Feb 23 '12 at 17:45 2012-02-23 17:45
source share