UINavigationController and autorotation

后端 未结 7 1594
灰色年华
灰色年华 2020-12-13 19:46

I have a UIViewController that returns YES in shouldAutorotateToInterfaceOrientation: for UIDeviceOrientationPortrait and NO

相关标签:
7条回答
  • 2020-12-13 20:21

    Try it again with the 3.0 OS (now that we can talk about it). Two special cases of this have been worked out under 3.0:

    1. Presenting a portrait modal view over a landscape view and vice-versa. An example is the pre-3.0 behaviour in Mail for viewing attachments. You could rotate to landscape for a PDF and get back the portrait view for the message when you dismissed the attachment view. (Now that we have landscape message view in 3.0 this behaviour seems to be gone).

    2. Mixing orientations within a view stack and getting the correct orientation back when you pop the stack. An example is the transition between the tableview of movies and the movie view in the YouTube app.

    There seem to have been some thorny aesthetic problems of how the default transitions for all the permutations should look. There are some weird elements if you view in slo-mo, but it beats bending over backwards in your own code.

    0 讨论(0)
提交回复
热议问题