Is it possible to programmatically get the identifier of a basic UIViewController from an UIViewController or Storyboard in Swift/Objective-C?
In Swift:
var str: String! = self.restorationIdentifier
You can get the identifier of the UIViewController
by using the restoration identifier with the following code in objective C:
NSString *restorationId = self.restorationIdentifier;
Hope this will help you.