Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Jason Gong
4,537 PointsStructuring an App, moving from login screen to main screen
I currently have a login screen that segues to the main screen of the app after. The login screen is a navigation controller, so the main screen would be a child of the login screen.
Is this an acceptable way to structure an app? Seems like the login screen shouldnt sit in the back all the time if its not needed.
Is there a way to just present another viewcontroller by itself and not on top of the screen that segued to it?
Jason Gong
4,537 PointsOk thanks I'll do that!
Erion Vlada
13,496 PointsErion Vlada
13,496 PointsI would use a push segue to go to the login, then once iv logged in, all you need to do is pop to root view controller it and thats it. Screen shot the Storyboard if you are using one so we can see.