I am facing a very strange issue on iOS 6.0
& iOS 6.0.1
.
Whenever I present a modal view from any view controller and then dismiss that modal view, the navigation bar of my parent view controller (from where I presented the modal view) overlaps by the status bar. This is working fine on iOS 6.0
& iOS 6.1
Simulators but on devices it messes up.
My Xcode version is 4.6.
This is how I am presenting my Modal:
UINavigationController *aNavigationController = [[UINavigationController alloc] initWithRootViewController:iViewController];
[aNavigationController.navigationBar setBarStyle:UIBarStyleBlack];
[self presentModalViewController:aNavigationController animated:YES];
[aNavigationController release];
This is how I am dismissing my Modal:
[self dismissModalViewControllerAnimated:YES];
Please see the attached screenshot of my nav bar after dismissing the modal: