您的位置:首页 > 移动开发 > IOS开发

iOS隐藏单个cell分割线

2016-03-10 15:29 351 查看
CGFloat width = CGRectGetWidth(cell.bounds);

if (kIsIOS8) {

    cell.separatorInset = UIEdgeInsetsMake(0, width, 0, 0); // 向左偏移

    cell.indentationWidth = -width; // adjust the cell's content to show normally

    cell.indentationLevel = 1;

}

else {

    cell.separatorInset = UIEdgeInsetsMake(0, 0, 0, width);

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: