uitabbarcontroller - IOS conditional view controllers under tabbars -
I am creating an app with a login system.
There is a tab in 4 tabs and a home tab. I have to keep a conditional sub-view controller where the user is not logged in, it will be a login page, where the user will be logged in, the user will be redirected to a different view controller Will be directed.
I have used the Navigation Controller between my tabiovi controller and tabview controllers.
Dennis
Just asked @ duci9y to elaborate on what said. You can do something like this:
In the implementation of your first tab:
if (! User.loggedIn) {loginViewController * loginController = [LoginViewController new]; [Self-present ViewController: Animated login controller: yes complete: zero]; }
in your login view controller
// after user login [auto shotgun viewer: unlimited: yes complete: zero];
Comments
Post a Comment