views:

299

answers:

1

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;

}