iOS7中的StatusBar错误? [英] StatusBar bug in iOS7?

查看:307
本文介绍了iOS7中的StatusBar错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被苹果公司正在使用StatusBar覆盖了viewController ...或我的应用程序的界限这一事实感到困惑。有没有办法可以在StoryBoard中移动TitleBar?或者我必须猜测它放在哪里?我很困惑该怎么做,现在已经到了iOS7。这是我在应用程序和故事板中的TitleBar:

I have been stumpted by the fact that apple is making the StatusBar Overlay the viewController...or the bounds of my application. Is there a way i can move the TitleBar down in the StoryBoard? or do i have to guess where to place it? I am confused on what to do, now that the move to iOS7 has come. Here is my TitleBar in the application and in the Storyboard:

和:

我该怎么做才能做到这一点?这就是我希望它看起来像,没有绿色,但黑色。

How am i supposed to make this work? This is what i would like it to look like, without the green, but black.

我甚至尝试了什么是在这篇文章中,但没有任何帮助。 iOS 7 - 调整状态栏

I even tried what is in this post, but nothing helped. iOS 7 - adjusting for status bar

推荐答案

您需要阅读文档iOS 7 UI Transition Guide。不让状态栏与视图内容重叠的最简单方法是在视图顶部放置一个20px的高视图。这样您的内容就不会移动到状态栏后面。话虽这么说,如果你使用UINavigationController作为你的TitleBar,你甚至不需要添加20px视图,因为navigationcontroller会为你处理它。所有这些都在iOS 7 UI过渡指南中。

You need to read the document "iOS 7 UI Transition Guide". The simplest way to not let the status bar overlap the content of your view is to have a 20px high view sitting at the top of the view. That way your content won't move behind the statusbar. That being said, if you are using the UINavigationController as your "TitleBar", you shouldn't even need to add the 20px view, as the navigationcontroller takes care of it for you. All of this is in the "iOS 7 UI Transition Guide".

编辑。为了您的信息(或其他任何正在努力解决此问题的人),我强烈建议您查看WWDC 2013中的自定义应用程序的iOS 7外观视频。它非常全面,几乎可以解决您所有的iOS 7用户界面问题。

EDIT. For your information (or for anyone else who's struggling with this) I highly recommend looking at the "Customizing Your App’s Appearance for iOS 7" video from WWDC 2013. It is so comprehensive that it will pretty much solve all your iOS 7 UI problems.

这篇关于iOS7中的StatusBar错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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