Reputation: 35
This question is not the same from current exist question.
I've set device universal, and only checked landscaperight.
When I launch my app in iPhone, It can work only in landscaperight like expected.
But iPad can rotate, don't know why. Even tried
- (BOOL) shouldAutorotate
{
return YES;
}
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskLandscapeRight;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationLandscapeRight;
}
Upvotes: 1
Views: 29
Reputation: 1611
You can try this method. Hope this can help you out
Open Info.plish
in your project, find `Supported interface orientations.
The first one is Supported interface orientations for iPhone, the second one is Supported interface orientations for iPad, you should leave only one row (Landscape) like the picture shows.
Upvotes: 1