iOS uses Uipageviewcontroller to combine multiple UITableView and click on the status bar to make UITableView sticky issues

Source: Internet
Author: User

Page structure: 1 Uipageviewcontroller with multiple other viewcontroller, each viewcontroller contains a UITableView

Problem: Unable to pin the current UITableView content by clicking on the status bar

Cause: Uipageviewcontroller helps us manage multiple viewcontroller, essentially including UITableView in more than one viewcontroller in Uipageviewcontroller view. Since the Scrollstotop default value for each UITableView is yes, the system cannot tell which top to click on the status bar.

Workaround: Use code control to have only one UITableView scrollstotop value of Yes

Method 1, in the Uipageviewcontroller control, the current display as which Viewcontroller, let this viewcontroller uitableview scrollstotop value is yes, the other is no

Method 2: Control in each Viewcontroller, viewwillappear when the scrollstotop of their uitableview is yes,willwilldisappear, Let your UITableView's Scrollstotop attribute be no

iOS uses Uipageviewcontroller to combine multiple UITableView and click on the status bar to make UITableView sticky issues

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.