I need to implement a tabbed view without using the UITabBarController. I created a view and added a UITabBar to it and set the code to dynamically add subviews to the View. When I add the first subview in willAppear, the tabbar is no longer visible. I was thinking the new view was covering it up so I shortened the view that gets added in, but then just white space shows at the bottom of the simulator. Below is the code I call from the willAppear of the main controller with the uiTabBar. I have tried insertSubView, and just addSubView as well and the same thing happens.
-(void)loadHomeViewController
{
if(!self.homeViewController){
self.homeViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"HomeView"];
[self.view insertSubview:self.homeViewController.view aboveSubview:self.tabBar];
}
[self.view bringSubviewToFront:self.homeViewController.view];
}
Try :
}