美文网首页
如何不显示组头、组尾视图

如何不显示组头、组尾视图

作者: 酸po萄 | 来源:发表于2016-08-26 08:31 被阅读26次

tableView的group模式下不显示section的组头视图和组尾视图,可以组头视图和组尾视图的高度设置为0.1:

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
return 0.1;
}
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
return 0.1;
}

相关文章

网友评论

      本文标题:如何不显示组头、组尾视图

      本文链接:https://www.haomeiwen.com/subject/kxoasttx.html