Trying to see if a UIViewController or UIView can identify its Storyboard ID. So was hoping for:
UIViewController *aViewController; NSString *storyboardID =
You can compare with class name . import class and then try.
NSArray *viewControllers = self.navigationController.viewControllers; UIViewController *root = [viewControllers objectAtIndex:0]; if ([root isKindOfClass:[UserLogin class]]) { //--- do --- }