Created
May 25, 2017 11:59
-
-
Save yuchuanfeng/bb08add4f34a6e5eaa17da60d7200c85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)viewWillAppear:(BOOL)animated { | |
[super viewWillAppear:animated]; | |
// if (self.isMovingToParentViewController == NO && !self.presentedViewController) | |
// { | |
// [self getInfos]; | |
// } | |
UIViewController *fromViewController = [[[self navigationController] transitionCoordinator] viewControllerForKey:UITransitionContextFromViewControllerKey]; | |
if (![[self.navigationController viewControllers] containsObject:fromViewController] && !self.presentedViewController) | |
{//Something is being popped and we are being revealed | |
[self getInfos]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment