【发布时间】:2013-12-31 08:24:58
【问题描述】:
在 plainsytle tableview 中,我们通过委托方法为每个部分设置 headerViews
-(UIView*)tableView:(UITableView*)tableView viewForHeaderInSection:(NSInteger)section
所以,当我向上滚动 tableview 时,第一部分的 headerView 始终显示在 tableview 的顶部,然后该部分完全消失在 tableview 上,然后第二部分的 headerView 将显示在 tableview 的顶部。所以我的问题是如何让 headerView 滚动伴随 uitableViewCell ,就像组样式 tableview 一样?
【问题讨论】:
-
您可以通过使用 UITableViewStyleGrouped 样式创建 tableview。
标签: ios uitableview