iOS去掉tableview中无内容的cell

1.在常用工具类中写个类方法 如下所示:

+(void)setExtraCellLineHidden: (UITableView *)tableView

{

    UIView *view = [UIView new];

    view.backgroundColor = [UIColor clearColor];

    [tableView setTableFooterView:view];   

}

在需要用到的地方直接用类名调用此方法即可

posted @ 2014-08-15 09:59  Billy_chou  阅读(214)  评论(0编辑  收藏  举报