码迷,mamicode.com
首页 > 其他好文 > 详细

隐藏UITableView当没有数据或数据不够的时候出现的分割线.

时间:2014-11-19 12:17:53      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:ar   color   sp   数据   bs   ad   ef   as   line   

在没有分割先的情况下,添加如下方法,当实例化tableview的时候调用该方法.

- (void)setExtraCellLineHidden: (UITableView *)tableView{

    UIView *view =[ [UIView alloc]init];

    view.backgroundColor = [UIColor clearColor];

    [tableView setTableFooterView:view];

    [tableView setTableHeaderView:view];

    [view release];

}

That‘s all~

隐藏UITableView当没有数据或数据不够的时候出现的分割线.

标签:ar   color   sp   数据   bs   ad   ef   as   line   

原文地址:http://www.cnblogs.com/mohe/p/4107819.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!