Reputation: 4501
When you create a tab bar controller via the interface and not programatically you dont have a tab bar controller class. How do you move from a view controller to this tab bar controller in a case such as this?
Upvotes: 0
Views: 1156
Reputation: 3835
You could try and create the tab bar controller first. Then show the full-screen splash screen modally (e.g. without animation, so that user won't notice the tab bar controller) and off that splash screen you present location selector. Once the user is done with it you dismiss both modal controllers revealing tab controller.
If you need to set up view controllers in your tab bar controller based on the information you're getting from location selector you can do it e.g. via a delegate, that is:
I hope it helps.
Upvotes: 1
Reputation: 958
At first make the tabbarcontroller then make uiview controller ...such as...
NSMutableArray *listOfViewControllers = [[NSMutableArray alloc] init];
tab1view = [[tab1viewcontroller alloc] initWithNibName:@"tab1viewcontroller" bundle:nil];
[listOfViewControllers tab1view];
[tab1view release];
tab2view = [[tab2viewcontroller alloc] initWithNibName:@"tab2viewcontroller" bundle:nil];
[listOfViewControllers tab2view];
[tab2view release];
[self.tabBarController setViewControllers:listOfViewControllers animated:YES];
i think it will help you.
Upvotes: 1