0
我使用的Xcode 4.2深化发展的应用旋转的观点,我是用故事板无法使用故事板
我试图使应用程序可旋转的,但它不牛逼旋转,这里是我使用的代码:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown || interfaceOrientation != UIInterfaceOrientationLandscapeRight || interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown|| interfaceOrientation !=UIInterfaceOrientationPortrait);
}
,并在项目信息,我支持所有的方向....
我这么想吗?
感谢
你提到你有所有的方向支持。但是,在项目信息页面中,您可以检查属性“支持的接口方向”属性,并检查所有方向是否存在 – jajo87 2012-01-16 19:35:09
“支持的接口方向”,类型:数组,值:4项(以及他们在那里) – user1051935 2012-01-16 19:48:32