The iPhone version of my app supports UIDeviceOrientationPortraitUpsideDown
and UIDeviceOrientationPortrait
, but the iPad version supports all Orientations.
In my view controller I have this:
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
and my Info.plist file has this:
The problem is that when I build the app to my iPod, the app won't turn upside down. The iPad will support all Orientations.
I've tried removing the shouldAutorotateToInterfaceOrientation
all together and I've tried this code:
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation = UIDeviceOrientationLandscapeLeft) && (interfaceOrientation = UIDeviceOrientationLandscapeRight) && (interfaceOrientation = UIDeviceOrientationPortraitUpsideDown) && (interfaceOrientation = UIDeviceOrientationPortrait);
}
But for some reason, the upside down just won't work! Are there any other solutions for this?
Edit: using Xcode 4.5 iOS6