Wrong order in navigation bar and table view

风流意气都作罢 提交于 2019-12-11 20:01:00

问题


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:

the problem in the storyboard:

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

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


回答1:


Set navigationController.navigationBar.translucent = NO;




回答2:


In the storyboard for the viewController check if the "Adjust Scroll View Insets" property is checked unser "View Contoller" layout



来源:https://stackoverflow.com/questions/33145818/wrong-order-in-navigation-bar-and-table-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!