星五博客

tableview cell分栏线左边画到头和隐藏

viewdidload里添加一行

[tableView setSeparatorInset:UIEdgeInsetsMake(0,0,0,0)];

--------------------------------------------------------------------

左边画到头

[cell setLayoutMargins:UIEdgeInsetsZero];

隐藏分栏线

[cell setLayoutMargins:

  UIEdgeInsetsMake(0,[[UIScreen mainScreen] bounds].size.width,0,0)];

IOS