Wrong order in navigation bar and table view

2019-09-16 14:33发布

from a Home VC, embedded in a storyboard: I tap on the left button, performing a segue. This segue will lead me to a navigation controller with its own tableview (the one that comes with the object). I simply want a black navigation bar, but it seems that navigation bar is before the view and the view, i before the tableView.

in storyboard I set: the navigation bar to "opaque black navigation bar" in table view's attributes inspector I set view's background to red (is a test)

check the last image for update

my storyboard:

enter image description here

the problem in the storyboard:

enter image description here

but what I obtain is a sort of sovrapposition, like this.

enter image description here

UPADATE (new problem navigation bar black, status bar transparent, and can't hide it from storyboard):

enter image description here

2条回答
霸刀☆藐视天下
2楼-- · 2019-09-16 14:42

Set navigationController.navigationBar.translucent = NO;

查看更多
We Are One
3楼-- · 2019-09-16 14:57

In the storyboard for the viewController check if the "Adjust Scroll View Insets" property is checked unser "View Contoller" layoutenter image description here

查看更多
登录 后发表回答