IOS complex UI Layout-16 (-(void) scrollViewDidEndScrollingAnimation: Method Usage Note)
Today, when I was writing a project, I encountered a crazy thing.
As shown in the title, this method turns around.
-(Void) scrollViewDidEndScrollingAnimation: the method in the Protocol.
It is called when the animation ends.
Animation? Why is there an animation?
SetContentOffset: animated:-This method is animated.
According to my usual habits, after animated, I set NO.
This setting does not matter.
It completely broke my mind. When I debug a bug, I didn't even think of the bug here.
This is because I found that in-(void) scrollViewDidEndScrollingAnimation: the breakpoint is not terminated. It is easy to think of no animation. In this case, it is assumed that the animation is set to NO.
Therefore, be careful when using the proxy. Consider more.
I hope I will give it a warning.