The most reliable method for returning the "id" of a UIViewController or UIView is ...
NSString *viewControllerName = [[NSString alloc] initWithString:viewController.nibName];
This will return ... "29w-Ic-LNo-view-FDu-oq-UpZ", where "29w-Ic-LNo" is the identifier of the UIViewController, and "FDu-oq-UpZ" is the identifier of the UIView.
However, you can also use ...
NSString *viewControllerName = [[NSString alloc] initWithString:viewController.title];
This will return the βTitleβ of the UIViewController in the Attributes Inspector; so itβs as easy as adding a storyboard identifier to a UIViewController, you can also add a title.
serge-k Oct 12 '14 at 0:10 2014-10-12 00:10
source share