iOS7 / iOS6 Conditional Rotation Portrait / Landscape for different sections of App

前端 未结 1 918
滥情空心
滥情空心 2020-12-09 00:38

Problem: A have an App that uses both Landscape mode (locked) and Portrait Mode (locked) for different parts of the app. Now I have a working solution howev

相关标签:
1条回答
  • 2020-12-09 01:36

    See my answer here, including a test project.

    Basically, orientation can only be forced to change when presenting a view controller modally. For example, media playback in some apps. If you wish to transition from a view controller that can only be presented in portrait to a view controller that is only presented in landscape, you will need a modal presentation. Push will not work.

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