2

if I don't hide the separator,the UI will be like as following: The normal status

But What I need to do is going to hide a part of separator view in tableview.Such as: What i want to display

I had tried to set up the [separatorinset],but it didn't work.

Jimmy Ng
  • 101
  • 7
  • You can change the separator style to None to hide it, it's in tableView attribute – Tj3n Sep 12 '16 at 04:45
  • I knew how hidd all separator,but the result what i expect is to hide the separator in cells at indexPath.just a part of separators ,not all. – Jimmy Ng Sep 13 '16 at 07:45

1 Answers1

1

I fixed this question for useing these codes:

cell.separatorInset = UIEdgeInsetsMake(0, 0, 0, FNDeviceWidth);//FNDeviceWidth,the cell's width cell.layoutMargins = UIEdgeInsetsZero; cell.preservesSuperviewLayoutMargins = NO

Jimmy Ng
  • 101
  • 7