Click the status bar to go back to the top

Source: Internet
Author: User
When the user taps the status bar, the scroll view beneath the touch which are closest to the status bar would be Scrolle D to top, if it's ' Scrollstotop ' property is YES, it delegate does not return No. from ' Shouldscrollviewscrolltoto P ', and it isn't already at the top.//on IPhone, we execute this gesture only if there ' s one on-screen scroll view with ' scrollstotop ' = = YES. If more than one is found, none would be scrolled. @property (nonatomic) BOOL scrollstotop; Default is YES. Set this property, you can let the click Status bar does not return to the top, but if we need to get him back to the top, the program does not respond to the operation, the solution just above the official document said, only if a host controller has a ScrollView and set this property to YES , the other scrollview.scrollstotop = no this will respond to this event, the principle is very simple, if there are 2 ScrollView, the system simply does not know which one you need to scroll to the top

Click the status bar to go back to the top

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.