//解决左边空白问题
if ([self.tableV respondsToSelector:@selector(setSeparatorInset:)]) {
[self.tableV setSeparatorInset:UIEdgeInsetsZero];
}
if ([self.tableV respondsToSelector:@selector(setLayoutMargins:)])
{
[self.tableV setLayoutMargins:UIEdgeInsetsZero];
}
//代理方法解决15像素空白问题
(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];
}
}//没数据分割线不显示
self.tableV.tableFooterView = [[UIView alloc] init];