首页 > 移动平台 > 详细

改变iOS7上tableview的分割线长、颜色问题

时间:2014-07-31 13:32:06      阅读:393      评论:0      收藏:0      [点我收藏+]

# 改变iOS7上tableview的分割线长、颜色问题

    if ([self.tableView respondsToSelector:@selector(setSeparatorInset:)]) {

        [self.tableView setSeparatorInset:UIEdgeInsetsZero];

        [self.tableView setSeparatorColor:kGetColor(18.0, 18.0, 18.0)];

    }

#去掉UITableView中的某cell条分割线

        if (cell == nil) {

            cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier];

            [cell setSeparatorInset:UIEdgeInsetsMake(0, 0, 0, 10000000)]; 

        }

#或

        if (indexPath.section == 0 && indexPath.row == 1) {

[cell setSeparatorInset:UIEdgeInsetsMake(0, 0, 0, 10000000)]; 

        }


改变iOS7上tableview的分割线长、颜色问题,布布扣,bubuko.com

改变iOS7上tableview的分割线长、颜色问题

原文:http://blog.csdn.net/alincexiaohao/article/details/38312753

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!