【发布时间】:2011-02-01 20:33:31
【问题描述】:
通常我的应用程序以纵向模式显示所有视图,报告视图除外。仅当我在设置视图中并将设备旋转到横向模式时才会显示报告视图。现在,当我再次将设备旋转到纵向模式时,报告视图将被关闭并显示设置视图。
In report view
> shouldAutorotateToInterfaceOrientation
return ((interfaceOrientation == UIInterfaceOrientationLandscapeRight)||( interfaceOrientation == UIInterfaceOrientationLandscapeLeft));
Here at settings view
shouldAutorotateToInterfaceOrientation
if((interfaceOrientation == UIInterfaceOrientationLandscapeRight)||( interfaceOrientation == UIInterfaceOrientationLandscapeLeft))
{
Report *report = [[Report alloc]initWithNibName:@"Report" bundle:[NSBundle mainBundle]];
[self.navigationController pushViewController:report animated:YES];
[report release];
}
return YES;
}
【问题讨论】:
-
您面临的具体问题是什么?您可以在横向模式下查看您的报告视图吗?如果是,请说明您需要的下一步。
-
只有当我理解你的问题时,我才能为你提供帮助。但是您无法用正确的英语向我解释。那就是我试图修改你的问题,在某种程度上,我理解你的问题。请再次阅读修改后的问题,如果我的解释正确,请告诉我?
标签: iphone xcode interface-orientation