美文网首页
设置tableviewcell间距

设置tableviewcell间距

作者: 哪有猫不吃鱼 | 来源:发表于2020-04-22 11:21 被阅读0次

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

{

    if(section ==0) {

        return0.1;

    }

    return10;

}

-(UIView*)tableView:(UITableView*)tableViewviewForHeaderInSection:(NSInteger)section {

    UIView*view = [[UIViewalloc]init];

    view.backgroundColor = [UIColor clearColor];/

    return view;

}

效果如下  每一个cell为一组

相关文章

网友评论

      本文标题:设置tableviewcell间距

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