简体   繁体   English

状态栏后面的黑色条带有背景图像iOS7

[英]Black bar behind status bar with background image iOS7

When I click on the menu icon on the home screen, the side menu displays but there is a black box behind the status bar. 当我单击主屏幕上的菜单图标时,将显示侧面菜单,但是状态栏后面有一个黑框。 The background image used is sized correctly and when I display the side menu as the first view controller, this problem does not occur. 使用的背景图像大小正确,当我将侧面菜单显示为第一个视图控制器时,不会发生此问题。

I have checked through the SWReveal tag on SO, and the issues tab on github for a solution. 我已经检查了SO上的SWReveal标记以及github上的问题选项卡,以获取解决方案。

A video: 一段录像:

https://www.dropbox.com/s/ek6yp7z8re2nk0z/sidemenuerror.mov https://www.dropbox.com/s/ek6yp7z8re2nk0z/sidemenuerror.mov

Please let me know if you require additional info. 如果您需要其他信息,请告诉我。

尝试将隐藏菜单视图控制器上的edgesForExtendedLayout设置为UIRectEdgeAll ,或者至少包含UIRectEdgeTop

I guess the black bar behind status bar is navigation bar. 我猜状态栏后面的黑色栏是导航栏。

write this code to hide navigation bar. 编写此代码以隐藏导航栏。

[self.navigationController.navigationBar setHidden:YES]; [self.navigationController.navigationBar setHidden:YES];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM