状态栏与iOS7中的视图重叠 [英] status bar is overlapping with the view in iOS7

查看:184
本文介绍了状态栏与iOS7中的视图重叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

状态栏与视图重叠
如何在iOS7中设置状态栏下方的视图
我使用的是XIB而不是故事板

status bar is overlapping with the view How do I set the view below the status bar in iOS7 I'm using XIB not a storyboard

推荐答案

在iOS 7.0中,UI状态栏是透明的,为了适应应用程序中的更改,您可以使用状态栏样式:

In iOS 7.0, UI statusbar is transparent, To accommodate the changes in the app as with the status bar style you can use:

 UIStatusBarStyleDefault

状态栏是黑暗的轻量内容使用

for Status bar to be dark while for light content use

 UIStatusBarStyleLightContent

如果在应用程序中查看背景图像时遇到问题,其中图像在状态栏后面延伸。使用图像上的尺寸明确地以笔尖或编程方式(以适合您的方式)设置图像。

If facing trouble with background image of View in app where the image is extending itself behind the status bar. Set the image in nib or programmatically(whichever suits you) explicitly with the dimensions on Image.

有关UI更改的更多参考,请参阅Apple的本指南。 https://developer.apple.com/library/ios /documentation/UserExperience/Conceptual/TransitionGuide/TransitionGuide.pdf

For More References on UI Changes refer this Guide by Apple. https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/TransitionGuide/TransitionGuide.pdf

这篇关于状态栏与iOS7中的视图重叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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