ios: uitableview section header anchor to top of table

前端 未结 1 634
南旧
南旧 2020-12-28 14:49

i\'m trying to make a table with multiple section (like contact app) everything went well and i\'ve created custom section header on top of each section displaying the cha

相关标签:
1条回答
  • 2020-12-28 15:29

    This should work automatically if you use the Table View Style "Plain" and not "Grouped".

    From the documentation:

    UITableViewStylePlain: A plain table view. Any section headers or footers are displayed as inline separators and float when the table view is scrolled.

    UITableViewStyleGrouped: A table view whose sections present distinct groups of rows. The section headers and footers do not float.

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