The post title might not be the correct terminology, so I'll try and explain what I'm trying to accomplish.
I'm trying to build an app that utilizes a separate login view from the main app view. The reason is because the login screen is just a UITableView and once you login, you are presented with a UITabBar based view. The idea is that when you login, it does a flip transition to load the logged in part of the app.
My approach is to launch the app with somewhat of a "placeholder" UIView, which creates the login and app views like such:
Code:
UIView *localContainerView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
self.containerView = localContainerView;
[localContainerView release];
self.loginController = [[LoginController alloc] initWithNibName:@"LoginView" bundle:nil];
self.loginController.mainController = self;
self.loginView = (LoginView *)loginController.view;
//[containerView addSubview:loginView];
//self.view = containerView;
self.appController = [[AppController alloc] initWithNibName:@"AppView" bundle:nil];
self.appController.mainController = self;
self.appView = (AppView *)appController.view;
[containerView addSubview:appView];
self.view = containerView;
The lines that are commented are the lines that would normally show the login view first...this works fine. The problem I am having is when I try to display the AppView. In my AppView.xib, I have a UITabBar with 3 buttons/views. But when I launch the app, it displays a blank UITabBar...no buttons, and a blank view.
In the UITabBarController example, all they are doing to load the view is:
Code:
[window addSubview:tabBarController.view];
Granted, the UITabBarController is in the MainWindow.xib itself, but I am using "initWithNibName" so I don't see why it would behave differently.
Any help would be appreciated, let me know if something doesn't make sense.