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