iOS 7导航栏在viewDidAppear上跳跃/拉伸 [英] iOS 7 navigation bar jumping / stretching upon viewDidAppear

查看:97
本文介绍了iOS 7导航栏在viewDidAppear上跳跃/拉伸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为iOS 7更新我的应用。当我的视图出现在屏幕上时,您可以看到导航栏与屏幕其余部分之间存在间隙,然后导航栏跳转或延伸以填补空白。这导致我的自定义UIBarButtonItems从导航栏上掉下来。我试图拍摄过渡的照片,但它发生在相机可以拍照之前。不过,我已经附上了按钮发生了什么的图片。谢谢你的建议。如果任何代码有帮助,请告诉我。

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.

推荐答案

我找到了这种情况发生的原因。在这个预先存在的SO答案中回答: iOS7 UIModalTransitionStyleFlipHorizo​​ntal在转换后反弹。这个概念是我将模态过渡样式设置为水平翻转,显然在iOS 7中无法正常工作。

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.

这篇关于iOS 7导航栏在viewDidAppear上跳跃/拉伸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆