天生不是作曲家

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;
}
上一篇 下一篇

猜你喜欢

热点阅读