问题
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.

回答1:
Hello there is a Problem in the ios 7 with navigation bar ,Navigation bar appear over the views or showing gap between the nav bar and view , You can solved this problem with the help of following code
There has been a new property introduced in iOS 7 that lets you adjust the layout behavior as in previous versions of iOS. this code in your view controller, and you should be good The space your navigation bar takes up should be accounted for automatically
if ([self respondsToSelector:@selector(edgesForExtendedLayout)])
self.edgesForExtendedLayout = UIRectEdgeNone;
Thanks
回答2:
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.
来源:https://stackoverflow.com/questions/19191609/ios-7-navigation-bar-jumping-stretching-upon-viewdidappear