Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

vcanic

macrumors newbie
Original poster
Feb 4, 2010
13
0
Hello,

My application has a LoginView, after the user presses login and he/she is authorized; the user is shown the second view of the application (this view is called TabBarHomeView.xib).

I have a MainViewController that initiates the necessary view. So after the user presses the login button a method in MainViewController is called, which launches the TabBarHomeView.

The TabBarHomeView is launched by using the HomeTabBarController (which is a subclass of UITTabBarController) by the following code:

Code:
HomeTabBarController homeTabBarController = [[HomeTabBarController alloc] initWithNibName:@"TabBarHomeView" bundle:nil];
[mainWindow addSubview:[homeTabBarController view]];

The TabBarHomeView.xib has a Tab Bar Controller.

Somehow when I press login to view the TabBarHomeView.xib, I am only shown a black bar at the boddom (with the initial LoginView.xib in the background). It seems that the .xib file is not loaded correctly.

I've also tried a plain view with just a button (and its associated UIViewController) instead of TabBarHomeView, and that seems to work fine.

How can this occur, could I have done something wrong in the .xib file or used the wrong type of controller for the TabBarHomeVIew.xib file?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.