tarheel
tarheel

Reputation: 4797

How to add initial view to Storyboard file?

I started an "Empty Application" template, this means that I had to add my own storyboard file. Problem is, it is completely blank, and I can't figure out how to get the first view on there, so I can start designing my interface.

Anyone know how to get that first view on there?

Upvotes: 15

Views: 9535

Answers (4)

tanni tanna
tanni tanna

Reputation: 724

In the latest version of Xcode (12.2), this is how you can add initial view to story board

enter image description here

Click on + Icon,

enter image description here

search "View Controller", Drag and drop View Controller.

Upvotes: 6

Kerim G.
Kerim G.

Reputation: 332

Go to Edit->Show Library then drag and drop a type of View Controller that you need.

Upvotes: 0

l_r
l_r

Reputation: 1060

Just in case you can not start from scratch :

  • Select your View Controller
  • Open the Attribute inspector (right pan by default)
  • Go to View Controller section
  • Select Is Initial View Controller checkmark of the Initial Scene option

enter image description here

Upvotes: 11

Brayden
Brayden

Reputation: 1795

When you create a new Storyboard file, all you need to do is click/drag the UIViewController object from your right hand side of tools into your Storyboard and then you're all set to begin work on your new Storyboard.

Upvotes: 15

Related Questions