Landscape only iPhone app with multiple nibs

后端 未结 2 655
南笙
南笙 2021-02-09 01:01

I\'m developing an iPhone application that has several nibs, and should be landscape only.

The application is set to start in landscape mode via its Info.plist file.

2条回答
  •  野的像风
    2021-02-09 01:29

    it is just a suggestion but you can try to return NO in the shouldAotorotate method for the second view. Or try to make it in the portrait view in the IB. It seems that your view was loaded correctly(in the landscape mode) but then received shouldAutorotate message and had been rotated by 90 degrees.

提交回复
热议问题