Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

instantiateViewControllerWithIdentifier:@"SimpleTableVC" where is this identifier set in Interface Builder?

Full CODE: UINavigationController *navigationController = (UINavigationController *)[self.storyboard instantiateViewControllerWithIdentifier:@"SimpleTableVC"];

This code works properly, I do not know where the @"SimpleTableVC" string is being set in Interface Builder, I have looked at the Navigation Controllers in IB I have only found they are linked to the custom SelectMajorTableViewController subclass I have created. Where is this being set in IB?

1 Answer

Chris Jones
STAFF
Chris Jones
Treehouse Guest Teacher

The Storyboard ID is set in the Identity section of the Identity Inspector. You need to make sure you have clicked on the actual navigation controller itself and not one of the scenes it controls.

storyboard id

Thank You!!! I had to show the Identity section because it was hidden by default!