2

I used Static UITableViewController For Registration Form but In iPhone X, XR, i want to ad Safe area but it's not affecting in Screen, Any Help would be appreciate.

i added also footerView but below footer view space is remaining as it is as shown in image enter image description here

PGDev
  • 23,751
  • 6
  • 34
  • 88
princ___y
  • 1,089
  • 1
  • 9
  • 27
  • add `tableFooterView`, an empty view of desired height. mind it `tableFooterView`. – Blind Ninja Nov 05 '19 at 12:23
  • Have you tried this? : https://stackoverflow.com/questions/51050550/how-to-constrain-static-table-view-controller-cells-to-safe-area-in-swift-ios/51053543 – Dhaval Raval Nov 05 '19 at 13:41

1 Answers1

1

Try setting the tableView's contentInset to view's safeAreaInsets, i.e.

self.tableView.contentInset = self.view.safeAreaInsets
PGDev
  • 23,751
  • 6
  • 34
  • 88