私は、横向きの正しい向きを使用するアプリケーションを持っています。ビューコントローラで は、私が使用します。ランドスケープのサポートのみインターフェイスの向き
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
しかし、肖像方向へのユーザーロック iPhoneやiPadは、画面が縦長、横長ないよう を表示された場合。また、info.plistファイルでは、私はの右景色オリエンテーションを として定義しました。
左右方向の向きには、左右に2種類あります。 –
実際、コードを変更して 'UIInterfaceOrientationLandscape(interfaceOrientation)'を返します。 – jer