tableView 隐藏多余分割线,tableView分割线增加15像素

时间:2014-09-18 16:09:14   收藏:0   阅读:178
 1 //隐藏分割线
 2 [self setExtraCellLineHidden:_tableView];
 3 //隐藏多余分割线
 4 -(void)setExtraCellLineHidden: (UITableView *)tableView
 5 {
 6     UIView *view = [UIView new];
 7     view.backgroundColor = [UIColor clearColor];
 8     [tableView setTableFooterView:view];
 9 }
10 
11  
//增加15像素分割线
 if ([_tableView respondsToSelector:@selector(setSeparatorInset:)])
 {        
        [_tableView setSeparatorInset:UIEdgeInsetsZero]; 
 }

 

原文:http://www.cnblogs.com/kwame/p/3979181.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!