abisson
abisson

Reputation: 4425

Two Navigation Controllers (in Storyboard)

So I am new to Objective C/iOS and so on... and I want to make something really simple. I want to have a Login view, and once that is done, I reach the "Main" of my application [HomePage in the image]. In that Home Page, I want to have a "brand new" Navigation controller, and the Home Page to be the root.

Now, if I want to Segue from the Login to Home, I have to have a Navigation controller at the left of the Login Controller. If I do that, the Home page will have a back button to the login screen and I don't want that. I want to delete that Login View if possible. I won't need it anymore unless the users clicks "Logout".

Basically two steps in my question: enter image description here 1) How do I set the Navigation Controller for a new stream of View Controllers/View and delete the old set that is now unreachable.

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

Upvotes: 4

Views: 2838

Answers (1)

user427969
user427969

Reputation: 3896

You don't need to have to have a Navigation Controller on before Login ViewController. You could do it as following:

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

Upvotes: 2

Related Questions