problem with presentModalViewController

Posted by pbcoder on Stack Overflow See other posts from Stack Overflow or by pbcoder
Published on 2010-05-14T11:28:29Z Indexed on 2010/05/14 11:34 UTC
Read the original article Hit count: 230

Filed under:
|

If my iPad is in Landscape mode and presentModalViewController is called the view automatically turns into portrait mode. Any solutions?

UIViewController * start = [[UIViewController alloc]initWithNibName:@"SecondView" bundle:nil];
start.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
start.modalPresentationStyle = UIModalPresentationFormSheet;

[self presentModalViewController:start animated:YES];

In SecondView I've already added:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;

}

© Stack Overflow or respective owner

Related posts about ipad

Related posts about objective-c