I would like to know if the rootViewController in a navigation controller stack is of specific class. How to do such a thing ?
Thx for helping,
Stephane
Here you go buddy
id rootController = [self.navigationController rootViewController];
if([rootController isKindOfClass:[YourDesiredController class]]){
//do something
}
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