Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

strange gray area at bottom of tableview controller

I can not understand why this tableview has gray area at the bottom of tableview.

enter image description here

I only embedded table view controller into navigation controller and I add a tab bar item.

If I remove navigation controller, that area will go away.

like image 458
John Avatar asked Sep 02 '25 10:09

John


1 Answers

There are two possible causes here. Either 1) You do not have enough constraints to pin each edge of the tableview to the superview or 2) the table footer view is being displayed in that place, in which case set the tableview.tableFooterView = UIView() and implement heightForFooterInSection to return 0.

like image 188
CSjunkie Avatar answered Sep 04 '25 00:09

CSjunkie