//创建tableView时添加
if ([tableV respondsToSelector:@selector(setSeparatorInset:)]) {
[tableV setSeparatorInset:UIEdgeInsetsZero];
}
if ([tableV respondsToSelector:@selector(setLayoutMargins:)]) {
[tableV setLayoutMargins:UIEdgeInsetsZero];
}
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
[cell setSeparatorInset:UIEdgeInsetsZero];
}
if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {
[cell setLayoutMargins:UIEdgeInsetsZero];
}
}