UITableView设置系统cell的分割线顶头
2016-08-15 本文已影响407人
Lifeasy
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{
cell.layoutMargins = UIEdgeInsetsZero;
cell.separatorInset = UIEdgeInsetsZero;
cell.preservesSuperviewLayoutMargins = NO;
}