TableViewCell 下划线或分割线长度与颜色问题
作者:
CCSHCoder | 来源:发表于
2016-06-01 10:26 被阅读2501次- (void)viewDidLoad {
[super viewDidLoad];
//UIEdgeInsetsZero 下划线为屏幕的宽
//UIEdgeInsetsMake(<#CGFloat top#>, <#CGFloat left#>, <#CGFloat bottom#>, <#CGFloat right#>) 细微调整
//下划线位置
[self.tableView setSeparatorInset:UIEdgeInsetsZero];
//下划线颜色
[self.tableView setSeparatorColor:[UIColor xxxx ]];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell;
[cell setSeparatorInset:UIEdgeInsetsZero];
[cell setLayoutMargins:UIEdgeInsetsZero];
return cell;
}
本文标题:TableViewCell 下划线或分割线长度与颜色问题
本文链接:https://www.haomeiwen.com/subject/fcdhdttx.html
网友评论