Created
October 30, 2013 18:18
-
-
Save woxtu/7237411 to your computer and use it in GitHub Desktop.
Do something when the animation of the navigation bar is complete
This file contains hidden or 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
| // in the view controller | |
| UIWindow* window = [[UIApplication sharedApplication] keyWindow]; | |
| UINavigationController* navigationController = (UINavigationController *)[window rootViewController]; | |
| [UIView transitionWithView:self.view | |
| duration:UINavigationControllerHideShowBarDuration | |
| options:UIViewAnimationOptionCurveLinear | |
| animations:^{ | |
| [navigationController setNavigationBarHidden:YES animated:NO]; | |
| } completion:^(BOOL finished) { | |
| /* do something */ | |
| }]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment