iOS 7 导航栏和滚动视图在故事板和模拟器中有所不同 [英] iOS 7 Navigation Bar and Scroll View are different in storyboard and simulator
本文介绍了iOS 7 导航栏和滚动视图在故事板和模拟器中有所不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带导航栏的导航控制器,不是半透明的.我在根视图中添加了一个滚动视图.但是当我运行该应用程序时,它显示的内容与我在 StoryBoard 中看到的不同.一切都变了.
I have a navigation controller with navigation bar, not translucent. I added a scroll view to the root view. But when I run the app, it show different from what I saw in StoryBoard. Everything shifted down.
这是我在 StoryBoard 中看到的:
This is what I saw in StoryBoard:
这是在模拟器中:
推荐答案
你的故事板应该是这样的在 ios 7 中,滚动视图必须覆盖到整个屏幕
您需要将图像放在顶部边缘
Your storyboard should like this
In ios 7 scroll view must be covered to entire screen
You need to put image on top edge
你会输出如下
这篇关于iOS 7 导航栏和滚动视图在故事板和模拟器中有所不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文