I wish to have a "fullscreen mode" in my iPhone application where when a user presses a button, the statusbar, navigationbar, and toolbar animates out of the screen (like the fullscreen feature of Safari in landscape mode in iOS 6). I am basically showing a UINavigationController with a UIViewController as the top view controller.
I can hide the elements by doing this from the UIViewController:
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide];
[self.navigationController setToolbarHidden:YES animated:YES];
[self.navigationController setNavigationBarHidden:YES animated:YES];
However, the animations are not synchronized, and the resizing of the content is not completely fluid. If you play with the Safari fullscreen feature, you can see that the animation is perfectly fluid. Any ideas on how I can achieve this with perfect animation?