I have a UIScrollView that displays a list of data. Right now, when the user adds one more item to the list, I can expand the size of the contents of the UIScrollView and scroll smoothly using setContentOffset and YES to animate.
When the user removes an item from the list, I want to resize the contents of the UIScrollView and scroll back one step in an animated way too.
How can I get the right to order? Right now, if I resize the content before scrolling, the scrolling will not be animated.
I tried scrolling back until the content was resized, but it still did not give a smooth transition.
Is there a way to end the scroll animation BEFORE resizing the content?
thank
source
share