Question

Got a bit of a weird one.

I am using the following codebase to build a UItable with AutoLayout programmatically:

Using Auto Layout in UITableView for dynamic cell layouts & variable row heights

The issue I have is that the output seems to give me the separator shifted to the right I need the background to be the background colour you see, but that little "notch" still remains white. I have changed the separator colour to black here for better viewing.

Same output for Simulator and iOS Device

Any ideas on what is creating that would be much appreciated.

Was it helpful?

Solution

in viewDidLoad method set:

self.tableView.separatorInset = UIEdgeInsetsMake(0, 0, 0, 0);

note, that this method available from iOS 7

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top