レンダリングのパフォーマンスに関しては、横向きと縦向きの間に実際の違いはないはずです。変換を使用してメイン ビューを 90 度回転させていますか? iPhone OS 2.1 の時点で、メイン ビューをランドスケープで開始するために手動で変換を適用する必要はなくなったと思います。強制的に横向きにするために必要だったのは、このデリゲート メソッドをアプリケーション デリゲート内に配置することだけでした。
- (void)application:(UIApplication *)application willChangeStatusBarOrientation:(UIInterfaceOrientation)newStatusBarOrientation duration:(NSTimeInterval)duration;
{
// This prevents the view from autorotating to portrait in the simulator
if ((newStatusBarOrientation == UIInterfaceOrientationPortrait) || (newStatusBarOrientation == UIInterfaceOrientationPortraitUpsideDown))
[application setStatusBarOrientation:UIInterfaceOrientationLandscapeRight animated:NO];
}
そして私のルートビューコントローラで以下:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return ( (interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIInterfaceOrientationLandscapeRight));
}