It sounds like you are making the mistake of using only views when you should be making correct use of view controllers. If you are a new developer this is especially important to get right.
Your login screen should be a view controller, e.g. MyLoginViewController
. This can initially be the rootViewController
of your main window, or you can present it modally over your main content when the app launches.
After logging in, you can either replace the window's rootViewController
with your main view controller, or dismiss the login screen if you presented it modally.
Your main view controller should be a UITabBarController
, and if you want push/pop navigation with back buttons etc. you need to put a UINavigationController
inside each tab, and then push the top-most view controller onto that.
This can all be done very easily using interface builder as well.