Programmatically get a Storyboard ID? Programmatically get a Storyboard ID? objective-c objective-c

Programmatically get a Storyboard ID?


You can use the restorationIdentifier, it's right above the Storyboard identifier and it's a UIViewController property.


You can use the Restoration ID:

NSString *restorationId = self.restorationIdentifier;

Just check the checkbox 'Use Storyboard ID'


The storyboard id is only meant to find and instantiate a VC from a storyboard.As written in the UIStoryboard reference:

"This identifier is not a property of the view controller object itself and is only used by the storyboard file to locate the view controller."

Why do you need it?