-1

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);
    }
}
4

1 に答える 1

0

appDelegate didLaunchメソッドで、ローテーションを有効にしますか?

[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
于 2012-07-18T17:57:37.370 に答える