Search code examples
iphoneiosxcodetableviewcell

The separating line on the tableview does not appear right


The separation line on the tableview does not seem right on my project. I have no idea, but the separation line does not start from an edge of the screen. There is a little space at the beginning. Could someone please give me an advice why this is happening or what have I done wrong?


Solution

  • This is a stylistic change Apple introduced with iOS 7. From the iOS 7 UI Transition Guide:

    Separators in iOS 7 are thinner, narrower, and lighter in color than separators in iOS 6. By default, the separator is inset from the left edge of the table view.