How to remove the navigation controller in the storyboard?

I follow a simple quick tutorial that shows how to add a navigation controller to the storyboard view manager in xcode. This is done using the editor> Paste in> Navigation Controller

enter image description here

The problem is that after the navigation controller is built in, it cannot be deleted. The "unembed" option is always gray. Removing the controller view from the storyboard results in an error. Even if the arrow indicating the first view indicates a simple empty view, just like when starting a new project.

I would expect that there is still some code from the navigation controller, it is delayed somewhere, but how to determine it?

+6
source share
2 answers

I am following this step.

1) select a navigation controller and delete the connection.

select navigation controller

2) make a root look at your view controller

make root view

root view

+5
source

No ... no source code, don't worry.

If your changes are hot, then just Control-Z, if you do not select a navigation controller, and click the delete button.

+3
source

Source: https://habr.com/ru/post/972826/


All Articles