开发者

Navigation bar not showing

My MainWindow.xib has a Tab Bar Controller in it with various tabs. Each tab is set to different xib file.

When tapping on the tabs I change the index of tab bar controller which then loads the appropriate xib.

In one of these xib files I have a navigation controller and its view is set as the main view of the xib and it has various controls on it e.g. tableview etc.

The problem is when I tap on this tab which then loads this xib I don't see the navigatio开发者_JS百科n bar - I only see the inner view with tableview etc - so I don't see anything relating to the nav controller!

the nav hidden property is set to false and I am not setting it to true anywhere in the app.


In the tab bar controller xib, you have your tabs defined and each one has the "Nib name" populated, right?

I have mine set up where the tab is a navigation controller and the xib that is loaded is the view controller (vs loading a view controller with a nav controller in it.

Navigation bar not showing


In your xib, make sure you choose Navigation Bar for Top Bar under Simulated Metrics.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜