Search code examples
objective-cios5xcode4

IOS5 : how to navigate from view to tab bar controller


I am developing an application where i have to authenticate a user (in a view with two text fields for username and password and a button (login)) and then i have to navigate to tab bar controller. Could you please tell me how can i achieve this.


Solution

  • You need to push the viewController on which you want to show tabbarController like this

    [self.navigationController pushViewController:self.tabBarController animated:YES];
    

    here self.tabBarController is your required tabBarController which you want to shown on nextView controller.

    You need to push with the tabBarController not with UIViewController.