Reload section without reloading section header

后端 未结 7 591
离开以前
离开以前 2020-12-08 08:03

I have a UITableView, where there is a UISegmentedControl in the header view. It should work exactly like in the App Store app: As the user scrolls

相关标签:
7条回答
  • 2020-12-08 08:32

    You're reloading the section, so clearly everything in the section will be reloaded (including the header).

    Why not instead place the UISegmentedControl inside UITableView's tableHeaderView? This would allow for exactly the behavior you're after.

    0 讨论(0)
提交回复
热议问题