I am confused by this delegate post. I have a navigation controller in a PopupViewController. When I click on the new viewController, I donβt know what the viewController is, that it is currently displayed before the new one is clicked ...
I tried getting navigationController.topViewController and navigationController.visibleViewContrller, but both of them are always equal to the viewController that will push it ... It looks like I get a message after the point has been clicked
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated{ UIViewController *currentViewController = navigationController.topViewController; if(currentViewController == viewController){
Has anyone stumbled upon something like this?
source share