我有一个 UITableView,如下图:
Before scroll:
|         |
|         |
|         |  < Clear cell, showing view below table
|         |
|---------|
| section |  < Section header
|---------|
|    1    |
|    2    |
|    3    |
|    4    |
|    5    |
After scroll:
|         |
|         |
|    1    |  < Don't want to see these cells above the section
|    2    |
|---------|
| section |  < Section header
|---------|
|    5    |
|    6    |
我在第一部分使用了一个透明单元格,因为我希望人们甚至能够从屏幕顶部滚动表格。
如何确保部分标题上方的单元格不可见?