UITableView or Uiscrollview Click the status bar list to return to the top

Source: Internet
Author: User

Finishing from the Internet ~ This is an attribute scrollstotop of the ScrollView inherited by TableView. The official note is this:/When the user taps the status bar, the scroll view beneath the touch which are closest to the status bar would b e scrolled to top, but only if it ' scrollstotop ' is YES, it delegate does not return No. from ' Shouldscrollviews Crolltotop ', and it isn't already at the top.//on IPhone, we execute this gesture only if there ' s one on-screen scroll V Iew with ' scrollstotop ' = = YES. If more than one is found, none would be scrolled. @property (nonatomic) BOOL scrollstotop; Default is yes.  the following conditions are required to implement this feature: 1. There is only one scrollview or tableview on the screen. 2. Its Scrollstotop property is set to Yes and the default is yes.   Want to disable this feature set the Scrollstotop property to No.  @ recently a friend asked, a viewcontroller under, put a number of TableView, click the status bar can not go back to the top, at first thought is he set the Scrollstotop to No, look under the not, the original on the 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.@ said: IOS under Uitableview/uiscrollview has a feature: Click the status bar to go back to the top. If there are multiple ScrollV under the current viewIew, or multiple TableView nested, click Back to the top is not valid, because the system does not know which response, simply disable all. @ Solution: currently show which TableView, which scrollstotop is set to Yes, the rest is set to No;

UITableView or Uiscrollview Click the status bar list back to the top

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.