我只需要在我的应用程序中支持纵向。我该怎么做?我试过添加
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
和
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return UIInterfaceOrientationPortrait;
}
但这无济于事 - 视图无论如何都会旋转。
提前致谢!