Search code examples
iosuitableviewxcode-storyboard

iOS - Excess of space in TableView header


I have two tabs and two different tables in each tab. There is a button below each table. I'm using the same constraints for both of them, and yet in one tab, my table header is using too much space and pushing the actual table down.

Here's the normal table:

enter image description here

The table I'm having trouble with:

enter image description here

Here are the constraints I'm using:

enter image description here

I've been searching for a solution online for hours and even recreated the entire layout and code. I have no idea why this isn't working.


Solution

  • This post answered my question.

    YourStoryboard.storyboard > YourViewController > Attributes inspector > Uncheck - Adjust scroll view insets.