我不知道为什么设备方向不起作用。
在项目属性中:

在我的代码中,我有:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
   return ((interfaceOrientation == UIInterfaceOrientationPortrait) || 
   (interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || 
   (interfaceOrientation ==UIInterfaceOrientationLandscapeRight));
}
我在我的iphone中探测它并且没有改变。
有什么遗漏吗?
先感谢您
已编辑(info.plist)
