I am making a TabBar based universal app. I have added few extra tabs and changed the viewController to navigationController. Now when i am trying to rotate the view from protrait to landscape, its rotating the inside view but tabBar does not rotate and it stays at the same place ie at the bottom of the protrait mode where as every other UI are rotating properly. Can any one help me out to solve this problem. thanks in advance. akash
A:
Make sure the controller not supporting the rotation (respectively its owner) overrides shouldAutorotateToInterfaceOrientation and returns YES for all orientations.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
#pragma unused(interfaceOrientation)
// Overriden to allow any orientation.
return YES;
}
mgratzer
2010-10-06 05:59:35
i have checked every thing but still the same result.
2010-10-06 06:42:45