Jenif
Jenif

Reputation: 35

Set iPad launch only in LandscapeRight.

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

Answers (1)

ronan
ronan

Reputation: 1611

You can try this method. Hope this can help you out

Open Info.plish in your project, find `Supported interface orientations.

enter image description here

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

Related Questions