
0
lujian - Javaが得意です。
左のナビゲーションバーからプロジェクトを選択して、Generalを開きます。
その中央、Deployment info > Device Orientation が画面の向きを設定する箇所になります。
設定値はこのようになっています。
Portrait:ホームボタンが下の縦方向
Upside Down:ホームボタンが上の縦方向
Landscape Left:ホームボタンが左の横方向
Landscape Right:ホームボタンが右の横方向
その中央、Deployment info > Device Orientation が画面の向きを設定する箇所になります。

設定値はこのようになっています。
Portrait:ホームボタンが下の縦方向
Upside Down:ホームボタンが上の縦方向
Landscape Left:ホームボタンが左の横方向
Landscape Right:ホームボタンが右の横方向

0
Lubo - PHP言語が得意です
Objective-c
Swift:
(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
return UIInterfaceOrientationMaskPortrait;
}
Swift:
func application(application: UIApplication, supportedInterfaceOrientationsForWindow window: UIWindow?) -> Int {
return UIInterfaceOrientationMask
}