CosmicMind/Samples

how do i manually segue to a view with navdrawer

Closed this issue · 1 comments

I am new to iOS, my app has a login page, and from login page i segue to a new view and i want navdrawer to be displayed there instead of making navdrawer the rootview in appdelegate.

Hey :)

Although you can segue to a NavigationDrawerController, it is better to set it as the rootViewController in the AppDelegate and have it be disabled. Your login view controller should be the rootViewController of the NavigationDrawerController, and once they have logged in, you should transition the rootViewController to another view controller of your choice and enable the NavigationDrawerController.

If you want to manually segue to the NavigationDrawerController, just do so as you would with any view controller. The NavigationDrawerController inherits from UIViewController, so all is the same when doing operations like that. If you need any further help, please reopen or create a new issue. Thank you!