-1

Suppose I create all my views in the storyboard, similar to this SO question. For the method

SomeController *myController = [self.storyboard 
  instantiateViewControllerWithIdentifier:@"yourIdentifier"];

where do I get/set "yourIdentifier" in the storyboard? Under Identity inspector > Identity are two options: Storyboard ID and Restoration ID. But per the document for the method instantiateViewControllerWithIdentifier neither seems to be the answer.

Community
  • 1
  • 1
Katedral Pillon
  • 14,534
  • 25
  • 99
  • 199

1 Answers1

1

You need to use a StoryBoard ID.

You can give it in storyboard as in image shown.

storyboard ID

Then use this id as

SomeController *myController =  [self.storyboard 
  instantiateViewControllerWithIdentifier:@"ViewController"];
Max
  • 2,269
  • 4
  • 24
  • 49