Skip to content

Instantly share code, notes, and snippets.

@woxtu
Created October 30, 2013 18:18
Show Gist options
  • Save woxtu/7237411 to your computer and use it in GitHub Desktop.
Save woxtu/7237411 to your computer and use it in GitHub Desktop.
Do something when the animation of the navigation bar is complete
// 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