问题描述
在使用昨天发布的新Xcode 5重建我的项目时,我很失望地看到我的故事板视图控制器被动摇了。
While rebuilding my project with the new Xcode 5 released yesterday, I was disappointed to see my storyboard view controller shaken up.
经过多次尝试解决问题之后,我必须得出结论我遇到了一个问题:导航视图控制器使导航栏与视图的内容重叠。这样做,应用程序在iOS 7设备上没问题(没有重叠),但是使用iOS 6.1设备时,导航栏重叠。
After many attempts to fix things, I must conclude I'm stuck with one remaining issue: Navigation View Controller makes the navigation bar overlaps with the content of the view. Doing so, the app is ok on a iOS 7 device (no overlapping), but with a iOS 6.1 device, the navbar overlaps.
我从FlatUI运行了一个示例项目交叉检查问题,他们有同样的问题。请问有什么想法吗?
I ran a sample project from FlatUI to crosscheck the issue, and they have the same issue. Any idea please?
推荐答案
正如我在评论中所说:在IB(界面建设者)中,你需要去 属性检查器用于视图控制器,并查看扩展边缘属性:只需取消选中在顶部栏下方标记,即可完成。
As I said in the comment: in IB (interface builder), you need to go to the "Attribute Inspector" for the view controller, and look at the "Extend Edges" attribute: simply uncheck the "Under Top Bar" flag and you're done.
这篇关于故事板应用程序在iOS 7上运行OK但在iOS 6.1上的Navbar shift视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!