I am very curious. We really can't access it easily. I mean, I know it has, but not accessible.
Why?
Basically I want that rootViewController to be loaded before sending some events by accessing it's view. There is an postnotification that's set up on viewDidload.
If you have more than one, then use:
UIViewController *root = navController.viewControllers[0];
where navController
is you UINavigationController
. This will work always.
Use UINavigationController topViewController
. This works if there is only one controller.
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