Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No Way to Set Initial View Controller in New Storyboard in Xcode 6

Tags:

xcode

ios

Here's what I did in Xcode 6.0.1:

Step 1: Create a new project with a single view.

enter image description here

Step 2: Add an additional storyboard to the project.

enter image description here

Step 3: Compare the original storyboard with the newly added one. Note how there is no arrow to designate the initial view controller. I can't find a way to add one, either.

enter image description hereenter image description here

Is this expected behavior? Can you only have one initial view controller per application? I thought I could have one per storyboard.

Thanks in advance.

like image 628
Clifton Labrum Avatar asked Oct 06 '14 20:10

Clifton Labrum


People also ask

How do I change the initial view controller in storyboard?

Specifying the Initial View Controllerstoryboard and select the Tab Bar Controller Scene. On the right, select the Attribute inspector. You'll find a checkbox named Is Initial View Controller. Checking this box will identify the selected view controller as the initial entry point for the storyboard you're on.

How do I change my starting view controller?

Click on the Main. storyboard file. You will be able to see how your Initial View Controller currently looks like on the left side of your screen. Simply drag the View Controller to the screen to create a new one; this option is located on the bottom-right side of the screen.


2 Answers

Select the view controller, then use the “Is Initial View Controller” checkbox in the attributes inspector.

initial view controller

like image 128
rob mayoff Avatar answered Sep 21 '22 08:09

rob mayoff


In Xcode 6.2, there is no longer an "Is Initial View Controller" checkbox in the attributes inspector. Instead, you set the initial view controller by adding the Storyboard Entry Point found in the Object Library.

like image 40
Rick Yuan Avatar answered Sep 18 '22 08:09

Rick Yuan