Quote:
Originally Posted by baja_yu
The settings are separate in project settings. And if you are looking for the shouldAutorotateToInterfaceOrientation, you generally have separate view controllers for iPad and iPhone so just set what you want in each. If you use the same, you can check deviceIdiom and return different values based on that.
|
Thank You Sir. I never knew it was so simple
To others
If we use one controller, we do this
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation

UIIn terfaceOrientation)interfaceOrientation
{
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
// Return YES for supported orientations
return YES;
}
else
{
return NO;
}
}