How to restrict my app to landscape mode?

前端 未结 4 1403
不思量自难忘°
不思量自难忘° 2020-12-13 07:52

I have my iPad application created using the SplitView template. I wonder what is the best way to restrict my application to landscape mode?

I have tried overriding

4条回答
  •  忘掉有多难
    2020-12-13 08:18

    Check out this iPhone app in landscape mode, if you haven't already. I was going to suggest simply adding UISupportedInterfaceOrientations to your Info.plist and specifying the two landscape orientations. But, apparently, this is not sufficient, according to answers to cited question.

提交回复
热议问题