Unable to add navigation bar to scene: Root controller issue?

I am still struggling with nav bars and just cannot figure out how to edit or verify that I have a nav bar in my view and would appreciate any help.

I have a project with a different set of scenes, similarly consisting of a navigation controller and three linked view controllers (linked via segues and a main table view embedded in the navigation controller), and I was able to add the navigation bar manually in the interface builder to the appearance controllers that were assigned to the table view controller. But in this set of scenes, the navigation controller is configured as the root view controller for the table view.

I have another set of scenes. A navigation controller and two related view controllers are both table view controllers. I have included the first table view controller in the navigation controller, and then added a second table view controller to it (for a new screen that I want to add to my app), and I connected this second table view controller to my first table view controller, the way to show- shogu (like yesterday, with a different set of scenes). Can I set this other navigation controller as the root controller? For example, can I have two root view controllers in a project?

It looks to me like there is a visible navigation bar on my new table view controller (see screenshot below), but I can't click to modify it to add a title to it. But does the navigation bar exist and does exist, and if so why can't I click inside it and use it?

My previous question was answered that you need to add the navigation bar manually to the storyboard scene on any additional view controllers. I did it on time and it worked. But today, when I tried to add a navigation bar by dragging and dropping it onto the stage, it prevented me from doing it.

Here's a screenshot: enter image description here

+3


source to share


3 answers


Try adding a push segue (which is deprecated) and then change it to show segue (between your tables). This is a temporary solution that I use in my applications.



+6


source


Get into the same problem. If I had a good fallback position, I am doing a tutorial that comes with examples of completed and working programs, so the first thing I did was see if there was a bug in 6.3.2 and 6.4. It turned out that the previous project worked great.



So, I just dragged "Item" in the sidebar and moved it under the Root View Controller!

0


source


I got the same problem.

However, by saving and closing the project, then reopening it, the title of the navigation bar can be edited. Before closing / reopening the project, the field could not be edited.

0


source







All Articles