Good question.
I donβt know why, but it seems that Apple does not want you to change this property. Either technical reasons, or some kind of UI landmark.
In any case, if you cannot change the orientation, you should go with a different approach and use two UIPageViewControllers
, each with a different navigation orientation, in which there is one delegate. Turn on the device, you will hide / show the corresponding views or you will start / release a new object on which each device will work.
BTW. You looked at the pageViewController:spineLocationForInterfaceOrientation:
delegate method. It seems that Apple prefers to respond to changes in device orientation:
Discussion Use this method to change the location of the spine when the orientation of the device changes, as well as installing new view controllers and changing the two-way state.
This method is only called if the transition style is UIPageViewControllerTransitionStylePageCurl
.
Please note that the Apple calendar application works with very thin pages in the portrait - it seems to be really their idea of ββthe user interface.
source share