user3395936
user3395936

Reputation: 681

How to fill the screen with TableView cells? Swift

So I have a TableView and dynamic cells but they dont go all the way down to fill the screen, it can only scroll inside that little section. How can I change this in storyboard? Thanks!

P.S. apologies if this is a super basic question, I just dont know how to do it.

enter image description here

Upvotes: 0

Views: 172

Answers (1)

Ambroise Collon
Ambroise Collon

Reputation: 3869

The problem is that you're table view is not filling the whole screen. Not that cells are not filling the table view.

To fix this you need to use auto layout and pin each side to bottom, top, trailing, leading respectively.

(You do that by clicking on the little TIE-fighter in the bottom right corner of the storyboard... :) )

Upvotes: 2

Related Questions