Doug Smith Doug Smith - 1 year ago 75
iOS Question

How do I give an "identifier" to a view controller within my storyboard?

The

instantiateViewControllerWithIdentifier:
method requires that the view controller I pass have an identifier. I went to my storyboard and clicked on my view controller, but I see no option to set the identifier. Where exactly do I find this option?

Answer Source

As the Image suggests! Hope it helps!

enter image description here

Then to use it you call:

[self.storyboard instantiateViewControllerWithIdentifier:@"YourViewControllerID"];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download