We have an ipad application that supports left and right landscape orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
We show view controllers as a modal view, invoking
childController.modalPresentationStyle = UIModalPresentationPageSheet; childController.modalTransitionStyle = UIModalTransitionStyleCoverVertical; [parentController presentViewController:childController animated:childController.animated completion:^{ childController->isBeingShowed = FALSE;
When we show one modal view: RootViewController (FullScreen) → SelectOption (500, 500) rotation works fine and selects parameters, the controller has the original size.
When we show an additional modal view: RootViewController (FullScreen) → SelectOption (500, 500) → Additional parameters (300, 300), after rotating SelectOption, the size of the view controller is changed to full screen, while the ViewOpions controller saves its size as indicated.
Vitaliy gervazuk
source share