cell的线不贴边

来源:互联网 发布:域名解析隐藏端口号 编辑:程序博客网 时间:2024/06/07 07:38

-(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];
}
}

0 0
原创粉丝点击