IOS complex UI Layout-16 (-(void) scrollViewDidEndScrollingAnimation: Method Usage Note)

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.