UIViewController do not rotate to landscape

后端 未结 2 1101
时光说笑
时光说笑 2021-01-28 23:30

In many situation need to rotate the controller and is not working. Right now I have the inverse of the problem: it is rotating, and I want to disable.

In that ViewContr

2条回答
  •  灰色年华
    2021-01-28 23:56

    Try marking the app's supported Interface orientations in the properties file to only being portrait. But then of course in that function you just return YES on view controllers that you want to allow rotation. But then when you push it back in the stack the other views should be portrait.

    portrait only orientations

提交回复
热议问题