iPhone - allow landscape orientation on just one viewcontroller

前端 未结 3 1672
终归单人心
终归单人心 2020-12-05 08:20

I have a navigation-based application in which I would like just one of the viewcontrollers to support landscape orientation. For that viewcontroller (vc1), in shouldAutorot

3条回答
  •  一生所求
    2020-12-05 09:20

    As i worked out for my App i advise you to use this solution.By using some conditions in the shouldAutorotateToInterfaceOrientation method orientation type we can solve this.Just try with this link will help you.

    https://stackoverflow.com/questions/12021185/ios-rotate-view-only-one-view-controllers-view/15403129#154031

提交回复
热议问题