Xcode does not create storyboard

Asked

Viewed 408 times

0

Someone knows why my Xcode when creating a single view Aplication, it does not create the storyboard, I’m starting now and in class the screen iphone app is made there, but in my appears only a main storyboard, when I run the application does not appear anything, only the name of the project. someone knows:

3 answers

1

From what I understand it seems to be all right. When a Single View Application is created your project already comes with a Storyboard and this is called Main.storyboard.

But even so if you want to create a new Storyboard just go on File > New > File... > User Interface > Storyboard.

  • but previously created a storyboard iphone, and an ipad storyboard, and now only this main, sera q is the version?

  • Yes, now with the new feature Size classes in Xcode 6, you can configure UI different for iPhone and iPad without needing another storyboard.

  • But expensive when I create a project, and I go in the main storyboard, and I put any component, and I run the project, it just opens the emulator with the name of the project, it shows nothing I put there, Voce knows what it is?

0


As mentioned by Douglas Ferreira the Xcode 6 includes the Size Classes and with that just a storyboard, however this does not stop you from using various storyboards, Xibs or even mix them!

To create a new file just do +N, select User Interfaces in iOS and choose the User Interface and do not forget to set it in General in the project settings.

If nothing comes up, make sure

  • To User Interface correct is selected
  • Included items are in a visible region
  • Are you looking at the View Controller right in the Interface Builder

0

The Main.storyboard file must be located in the project if you are not creating New File >> User Interface >> Storyboard

When you use the storyboard you can do it the way below:

ViewController *viewController = [[UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]] instantiateViewControllerWithIdentifier:@"storyboardID"];

When clicking on Viewcontroller inside your storyboard file set the ID as image below: Definir storyboardID

Browser other questions tagged

You are not signed in. Login or sign up in order to post.