我有一个始终是纵向的 iPhone 应用程序。但我需要旋转视图以显示表格。该按钮位于子视图中。我有这个代码:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}
但是因为这个视图是从子视图中调用的,所以界面方向被忽略了。
有没有办法改变界面方向?
谢谢!