通常、私のアプリケーションでは、レポート ビューを除くすべてのビューが縦長モードで表示されます。レポート ビューは、設定ビューでデバイスを横向きモードに回転させた場合にのみ表示されます。デバイスを再び縦向きモードにすると、レポート ビューが閉じられ、設定ビューが表示されます。
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;
}