Search code examples
iphonesdkviewswitchingtabbarcontroller

Switch from a View (Login) to another View with a TabBarController


i'm new at IPhone SDK Developing and now i need some help.

I have a LoginView where the User have to authentificate his legitimacy. After he enter his Username and Passwort he click on the "Sign In" Button.

Then i want to load my "Real-App". Here is the Problem because i can't switch from the LoginScreen to the TabBarController. I found many solutions but only for switching to other views.

Is there a way to do it ?


Solution

  • Just remove the LoginView using

    [loginViewController.view removeFromSuperView];
    

    Then add the TabBar with

    [window addSubview:tabBarController.view];