调整tableView的section间距的方法

重写下面这个方法即可:

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section

{

    return 5;

}

注意:return的值不能为0,否则默认的,0.1时候最小,默认应该是30;

posted @ 2013-12-23 19:22  NHW  阅读(355)  评论(0编辑  收藏  举报