を使用Supported interface orientations
してLandscape (left home button)
、その値を info.plist ファイルに設定します。これにより、アプリがその向きで起動し、設定する必要があります
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}
すべてのviewControllerで。
これがあなたが探しているものであることを願っています。他に何か必要な場合はお知らせください。
アップデート
こんにちは@DanSolo XCodeでアプリケーションを作成したと思いますよね?もしそうなら、ビューコントローラに行き、shouldAutorotateToInterfaceOrientation
メソッドをチェックしてください。このメソッドは、デバイスを回転させたときに呼び出されます。はいを返す場合は、回転しません。あなたの場合、あなたは戻ってきます
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
これは、横向きの左モードでのみ「はい」を返します。横向きの左右両方を使用する場合
return ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) ||
(interfaceOrientation == UIInterfaceOrientationLandscapeRight);
このコードは、すべての viewController のshouldAutorotateToInterfaceOrientation
メソッドに含まれます。
それが役に立てば幸い :)