I have an app which is navigation controller based with 8 'sub views' being accessed in the same way as this:-
Code:
adviceVC *controller = [[adviceVC alloc] initWithNibName:nil bundle:nil];
controller.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[[self navigationController] pushViewController:controller animated:YES];
All of the views transition correctly with animation except the one to which I add a tabbar to the navigation controller like this in 'viewdidload' :-
Code:
[self.navigationController.view addSubview:tabBarController.view];
When this view is loaded there is no animation though when it exits back to the main view the animation works fine. I remove the tabbar in 'viewwilldisappear'.
I don't know what's happening here so I wonder if anyone understands why I don't see the animation.
ps: I can get an animation by adding UIViewAnimationTransitionFlipFromRight in 'viewdidload' but that does not match the slide out & in that happens automatically when the uiviewcontroller loads.
This is not a show stopper, I'm just trying to understand what is really happening. nb: If I add the tabbar to the view instead of the navigationcontroller the bottom of the view is cut off with only the top half of the tabbar showing. One way to get a very thin tabbar