3

In my app when I transition both to and from navigation controllers with nav bars in iOS 7, the bars jump about 20px at the end of the animation. I know that this is a bug that has been discussed here before, but the solution offered up:

[self.navigationController.navigationBar.layer removeAllAnimations];

Only works for me in the segue to the new view controller, but not the other direction despite me adding that line to both view controllers.

Does anyone else have a workaround for this?

harryisaac
  • 1,121
  • 1
  • 10
  • 18

1 Answers1

0

This answer to a similar question includes a second fix that solves the problem for the reverse transition:

[UIView transitionWithView:self.navigationController.view
                  duration:0.75
                   options:UIViewAnimationOptionTransitionFlipFromLeft
                animations:nil
                completion:nil];
[self dismissViewControllerAnimated:YES completion:nil];
Community
  • 1
  • 1
Dan Dyer
  • 53,737
  • 19
  • 129
  • 165