Fabio
Fabio

Reputation: 1973

ios 6 supportedInterfaceOrientations

In my apilicacion use the following method to rotate:

- (NSUInteger) {supportedInterfaceOrientations
    return UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight;
}

But when load the next view

 View2 *Cambio =[[View2 alloc]initWithNibName:Nil bundle:Nil];
 Cambio.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
 [self presentViewController:Cambio animated:NO completion:^{/* done */}];

but this automatically rotated to UIInterfaceOrientationMaskLandscapeRight to UIInterfaceOrientationMaskLandscapeLeft

Any ideas?

Upvotes: 0

Views: 684

Answers (1)

Vertig0
Vertig0

Reputation: 623

Maybe you can try

-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
    return UIInterfaceOrientationLandscapeRight;
}

Upvotes: 1

Related Questions