I seem to be having a device specific problem with this code below, as it only affects the iPhone 3GS when I test.
Basically, the interface doesn't rotate. It works fine on all iPads and iPhones newer than the 3GS. If you can help me, I'd greatly appreciate it!
Code:
- (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
return YES;
} else {
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}
}
In your appDelegate didLaunch method, do you enable rotations:
[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];