iPhone在Xcode中支持方向



我在plist中设置它应该只支持纵向模式,但是当我旋转它时,视图发生了变化。它以前对我有用,但现在不行……

请帮帮我,它快把我逼疯了!

Vedran burojeviki,

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationPortrait) 

}

以上代码只支持竖屏模式..

您可以在此编写代码。

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationPortrait) 
}

最新更新