I'm sure this isn't new, but I'm having a few small issues with getting my app to play nicely under iOS 6. I'm sure it's an easy fix; I just can't get it working properly. My app:
On iPhone *only works in portrait + portrait upside down
On iPad *works in all orientations
Here is the code I've been using:
What should I change it to?
On iPhone *only works in portrait + portrait upside down
On iPad *works in all orientations
Here is the code I've been using:
Code:
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation
{
UIDevice* thisDevice = [UIDevice currentDevice];
if(thisDevice.userInterfaceIdiom == UIUserInterfaceIdiomPad)
{
return YES;
}
else
{
return (orientation != UIDeviceOrientationLandscapeLeft) &&
(orientation != UIDeviceOrientationLandscapeRight);
}
}
What should I change it to?