Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find Storyboard ID in Identity inspector

I'm trying to find the "Storyboard ID" which should be before Restoration ID in Identity inspector, but I can't find that for any view I've selected. I've tried to open a new project and I still can't find it either.

Identity inspector

I'm using Xcode 5.0.2 developing for iOS-7.

Can you tell me what I'm missing here?

like image 772
uriel Avatar asked Jan 06 '14 06:01

uriel


People also ask

How do I find the storyboard ID?

In the Storyboard, select the view controller that you want to instantiate in code. Make sure the yellow circle is highlighted, and click on the Identity Inspector. Set the custom class as well as the field called "Storyboard ID". You can use the class name as the Storyboard ID.

What is a storyboard ID?

A storyboard ID does exactly what the name implies: it identifies. Just that it identifies a view controller in a storyboard file. It is how the storyboard knows which view controller is which.

How do I change the Storyboard name in Xcode?

Change the Main storyboard file base name from Info. plist after you changed the name of Main. storyboard . And of course,you can change it from General - Deployment info - Main Interface .

What is instantiate view controller?

instantiateViewController(withIdentifier:)Creates the view controller with the specified identifier and initializes it with the data from the storyboard.


1 Answers

enter image description here

You are pointing to a UIView or some other object on the StoryBoard. Press the yellow indicator on top of the other objects which is your ViewController

like image 125
Segev Avatar answered Oct 04 '22 17:10

Segev