Strange UITable Separator issue - shifted right
-
20-12-2019 - |
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.
Any ideas on what is creating that would be much appreciated.
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