ios - Navigation bar causing problems -


Before adding the navigation controller to the storyboard, the program still worked, after adding the navigation bar for the project, when I clicked the button from the homepage, it is linked to the first page, but it can not display the black background and can not display for the program, I just set the title for the view controller. What's the problem? Should I need to add some code to solve?

First of all, you need to confirm yourself whether you are adding Navigation controller or navigation bar On the storyboard If you want to add the Navigation Controller to view the controller, you must

  1.PUT Navigation Controller STORYBOARD (from the Utility Area) 2.WHEN You must drag the Navigation Controller (from the utility area ), Equally you will create a View View Controller with the Navigation Controller. 3. When you put it in the storyboard, you can click the controller to view the table and delete the table view controller. 4. Controller with the navigation controller view controller (you should give the relationship as root).  

If you follow the above methods, then you will never be confused. You can get relevant answers.

And now if you are going to see the controller to see the navigation bar, then you can only see the following things

  1.After the above process navigation View the bar in the controller section ( 

Now it will look at your required part.

/ Html>

Comments