私はナビゲーションベースのアプリケーションを作っています。すべての方向をサポートするZoomPictureViewController
(ズームイン、ズームアウトの画像)以外は、ポートレートの向きが必要です。ビューが回転していない
私はZoomPictureViewController
を提示し、shouldAutorotateToInterfaceOrientation:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return YES;
}
でYE
Sを返すしかし、私は何の回転を取得していないのです。私はshouldAutorotateToInterfaceOrientation
、willRotateToInterfaceOrientation
、RotateToInterfaceOrientation
にのみ表示/現在のビューコントローラに呼び出されますが、これは私の場合には起きていないことを。知っています私はブレークポイントとNSLog
を入れてチェックしました。
「return YES;」のコメントを削除してテストします。 –
info.plistでサポートされている向きを変更しましたか? –
http://stackoverflow.com/a/9788125/204826 – jnic