I am getting viewControllers on navigationController stack as follows. Now I need to check if controller on top is one of known vc. How to get vc class name in order to compare it? Thank you.
NSArray *viewContrlls=[[self navController] viewControllers];
[viewContrlls lastObject]
something like,
if ([[viewContrlls lastObject] name] isEqualToString @"viewControllerName"){
Use this It may Help's you
NSString *CurrentSelectedCViewController = NSStringFromClass([[((UINavigationController *)viewController1) visibleViewController] class]);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With