My iPad app is set to support both landscape orientations (left and right). When I run it in the 6.0 or 6.1 simulator it behaves as expected. But in 5.1, it is locked to portrait (up or down, I can't tell) and doesn't re-orient when the simulator is rotated.
Edit: This has been marked as duplicate to this question: Supporting both iOS 6 and iOS 5 autorotation
I'm changing the question to ask, how can this be done without having to add this function:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return UIInterfaceOrientationIsLandscape(interfaceOrientation);
}
To every view controller?