//TableViewCell的分割线处理 左边没有空隙
-(void)viewDidLayoutSubviews {
if ([_tbView respondsToSelector:@selector(setSeparatorInset:)]) {
[_tbView setSeparatorInset:UIEdgeInsetsZero];
}
if ([_tbView respondsToSelector:@selector(setLayoutMargins:)]) {
[_tbView setLayoutMargins:UIEdgeInsetsZero];
}
}
-(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];
}
}