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

posted @ 2016-01-27 11:40  shao621  阅读(241)  评论(0编辑  收藏  举报