Determine whether to display based on the scrolling position, or write a category yourself and redefine the tableview to control the head of each group, etc.
A detailed analysis of this interface. The main frame is a UITableViewController, The top is a picture carousel, and below the carousel is a UIView navigation bar to store the button group. The bottom is Cell, needless to say. Specific implementation Create a Base controller. Inherit UITableView. Load Cell in the controller. Then add tableView to tableHeaderView, and add a picture carousel and navigation bar to tableHeaderView. Then customize the sub-controller. Inherit Base control controller. Load different TableViews. Just add the View of the sub-controller in the Base controller. Re-optimization: Add sliding gestures, and then modify the corresponding navigation bar after the sliding is completed
Determine whether to display based on the scrolling position, or write a category yourself and redefine the tableview to control the head of each group, etc.
I also want to know how to do it
A detailed analysis of this interface.
The main frame is a UITableViewController,
The top is a picture carousel, and below the carousel is a UIView navigation bar to store the button group.
The bottom is Cell, needless to say.
Specific implementation
Create a Base controller. Inherit UITableView.
Load Cell in the controller.
Then add tableView to tableHeaderView, and add a picture carousel and navigation bar to tableHeaderView.
Then customize the sub-controller. Inherit Base control controller. Load different TableViews.
Just add the View of the sub-controller in the Base controller.
Re-optimization:
Add sliding gestures, and then modify the corresponding navigation bar after the sliding is completed