cell 下划线左对齐的问题

-(void)setLastCellSeperatorToLeft:(UITableViewCell *)cell{

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

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

if([cell respondsToSelector:@selector(setPreservesSuperviewLayoutMargins:)]){
    
    [cell setPreservesSuperviewLayoutMargins:NO];
    
}

}

调用此方法 欢迎大家一起交流学习 iOS技术交流群436337987

原文地址:https://www.cnblogs.com/shao621/p/5162710.html