如何设置不同组section的的头部高度?tableView heightForHeaderInSection

2017 年 2 月 21 日 0 条评论 2.35k 次阅读 0 人点赞

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
//获取indexPath
NSIndexPath *indexPath = [[NSIndexPath alloc]initWithIndex:section];
if (0 == indexPath.section) {//第一组
return 20;
}else
return 15;
}

雷雷

这个人太懒什么东西都没留下

文章评论(0)

(Spamcheck Enabled)