Two navigation controllers (in storyboard)

So, I am new to Objective C / iOS and so on ... and I want to make something very simple. I want to look like a login, and as soon as this is done, I will get to the "Main" of my application [HomePage in the image]. On this homepage, I want to have a β€œnew” navigation controller, and the Homepage is the root.

Now, if I want Segue from login, I must have a navigation controller to the left of the login controller. If I do this, a return button to the login screen will appear on the main page, and I do not want this. I want to remove this entry, if possible. I’ll no longer need it if users don’t click the Logout button.

There are basically two questions in my question: enter image description here 1) How to install a navigation controller for a new thread View Controllers / View and delete the old set, which is now unavailable.

2) Since there are no .xib files (due to the Storyboard), how can I change between views? Thanks!

+4
source share
1 answer

You do not need to have a Navigation Controller until Login ViewController . You can do it as follows:

 Login ViewController | | (segue type = modal) | \|/ Navigation Controller Main ViewController 
+2
source

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


All Articles