美文网首页
cell分割线宽度为屏宽

cell分割线宽度为屏宽

作者: GShining | 来源:发表于2016-05-20 16:35 被阅读0次

-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPat{

if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {

[cell setLayoutMargins:UIEdgeInsetsZero];

}

if ([cell respondsToSelector:@selector(setSeparatorInset:)]){

[cell setSeparatorInset:UIEdgeInsetsZero];

}

}

相关文章

网友评论

      本文标题:cell分割线宽度为屏宽

      本文链接:https://www.haomeiwen.com/subject/aiynrttx.html