I've a weird problem. I'm using a navigationController and want to add a subview (a MBProgressHUD) to the navigationController.view.
Everything is absolutely fine under iOS4. But if I switch WITH THE SAME PIECE OF CODE to iOS5 the app crashes because the navigationController.view is now nil.
So there must be something which works under iOS4 but not under iOS5 in my code.
Has anybody a guess what I'm doing partly wrong there? Is there any difference between iOS4 and iOS5 setting up a view?
I'm somehow lost at the moment, because I've no general error I can search for but more a specific ones in context of iOS5.
I know this is a really general description, but I think it would be too much to post my complete code here.
So I really appreciate every single hint because I've absolutely no clue what's wrong there.
Thanks,
Andreas
Update 1:
I know that the problem occurs because of a tabBarController.
It's the following way:
When a user clicks on a row in a UITableView, the app opens a tabBarController including three views consisting each of it with a UINavigationController and a view in it.
So I initialize this construction with:
self.tabBarController = [[UITabBarController alloc] init];
SomeUIViewController* tabOne = [[SomeUIViewController alloc] init];
tabOne.tableViewContext = self.conferenceContext;
SomeUIViewController* tabTwo = [[SomeUIViewController alloc] init];
tabTwo.delegate = tabOne;
SomeUIViewController* home = [[SomeUIViewController alloc] init];
[self.tabBarController setViewControllers:[NSArray arrayWithObjects:tabOne, tabTwo, home, nil]];
[self.navigationController pushViewController:self.tabBarController animated:YES];
[home release];
[tabTwo release];
[tabOne release];
So the error seems to be within these lines of code. Because if I only init tabOne-View without the tabBar all things work perfectly also under iOS5. But if I init a tabBar with these lines of code I get the error.
Can somebody explain me what's wrong there under iOS5 perspective, because this code works perfectly under iOS4.
Update 2 (Important)
So, I think the problem is the navController. My structure is the following: window->navController->tabBar.
And it seems to be the case, that under iOS4 the app can access the navController within a tabBarView, but not under iOS5.