LoginSignup
1
2

More than 3 years have passed since last update.

【Swift】Main.storyboard起動をやめる

Last updated at Posted at 2021-03-27

はじめに

自分用メモです。

やりたいこと

XcodeはデフォルトでMain.storyboardを作成してくれ、何もしないとこのstoryboardが初めの画面になります。
これを、storyboard referenceなどを使った時に違うstoryboardを初期画面に設定することです。

実装

Info.plistを開くと、Application Scene Manifestの階層にStoryboard Nameがあり、Mainになっています。
スクリーンショット 2021-03-27 14.45.45.png

これを例えば、First.storyboardを初期画面にしたければ、MainをFirstにします。
そして以下のMain storyboard file base nameもMainになっているのでFirstに変更してあげましょう。
スクリーンショット 2021-03-30 14.08.03.png

おわりに

おわりです。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2