user17420428
user17420428

Reputation:

Swift UITableView: How to remove space under the last cell

I have a normal UITableView with two cells. Every cell has a height of view.frame.size.height - 250 in the heighForRowAt method. But under the last cell a white space appears. Look:

But I would like that it is like that:

Does anyone know how to do this? Warm greetings

PS: The bottom constraint of my tableview is 0 = superview

Upvotes: 1

Views: 1020

Answers (1)

Azhar Tahir
Azhar Tahir

Reputation: 194

  • Add tableview bottom constraint with superview rather than with Safe Area.
  • The issue is because of tableview bottom constraint with Safe Area.

Upvotes: 1

Related Questions