Search code examples
iosobjective-cios7uinavigationbar

iOS 7 navigation bar jumping / stretching upon viewDidAppear


I am trying to update my app for iOS 7. When my views appear on the screen, you can see that there is a gap between the navigation bar and the rest of the screen, and then the navigation bar "jumps" or "stretches" to fill the gap. This is causing my custom UIBarButtonItems to fall off the navigation bar. I tried to take a photo of the transition but it happens before the camera can take the picture. I have attached a picture of what happens to the button, however. Thanks for any advice. Please let me know if any code would be of help. picture of button falling


Solution

  • I found the reason why this occurs. It is answered in this pre-existing SO answer: iOS7 UIModalTransitionStyleFlipHorizontal bounces after transition. The concept is that I was setting the modal transition style to flip horizontal, and apparently that doesn't work correctly in iOS 7.