0

I have an UITableView object that I've added one constraint to it: width equal to view (the container view).

But for some reason it seems the tableView is bigger than the view:

Image

Can someone help me?

Thank you!

Borys Verebskyi
  • 4,160
  • 6
  • 28
  • 42
FS.O
  • 403
  • 6
  • 24

1 Answers1

1

The view is not bigger as you have identified already, it is due to the TableView Separator Inset, and you can change it from the storyboard itself.

enter image description here

View debugging is also very helpful in finding this kind of issues, you can debug your view from

Debug - View Debugging - Capture View Hierarchy.

Bharat Modi
  • 4,158
  • 2
  • 16
  • 27