2011-10-17 102 views
-1

我已经在plist中设置了它应该只支持纵向模式,但是当我旋转它时,视图会改变。它对我来说以前,但不是现在...iPhone支持Xcode的方向

请帮助,这是让我疯了!

+0

plist说什么,你有什么试过?需要更多信息。 –

+0

支持的接口方向: 项目0肖像(底部主页按钮) – vburojevic

回答

0

韦德兰Burojević,

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

}

上面的代码只支持肖像模式..

0

您可以在此编写代码。

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