I am having an issue with my tab view controller. I have 3 sections and out of those two work well with the status bar. However the third does not. It does not push down the title and you can see the status bar below the top bar!
Any help would be awesome. Here is my delegate which I've tried tweaking to make this work - but nothing is working for me. Anyone else had this issue?
Here is an image of the problem:
And here is my delegate method:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
UITabBarController *tabBarController = (UITabBarController *)self.window.rootViewController;
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];
UINavigationController *navigationController = (UINavigationController *)[[tabBarController viewControllers] objectAtIndex:0];
TreasureLogViewController *treasureLogViewController = (TreasureLogViewController *)[[navigationController viewControllers] objectAtIndex:0];
treasureLogViewController.managedObjectContext = self.managedObjectContext;
navigationController = (UINavigationController *)[[tabBarController viewControllers] objectAtIndex:1];
LocationsViewController *locationsViewController = (LocationsViewController *)[[navigationController viewControllers] objectAtIndex:0];
locationsViewController.managedObjectContext = self.managedObjectContext;
MapViewController *mapViewController = (MapViewController *)[[tabBarController viewControllers] objectAtIndex:2];
mapViewController.managedObjectContext = self.managedObjectContext;
return YES;
}