尽管将UIViewControllerBasedStatusBarAppearance设置为NO,但在iPad mini上仍可显示状态栏 [英] Status bar visible on iPad mini despite setting UIViewControllerBasedStatusBarAppearance to NO

查看:115
本文介绍了尽管将UIViewControllerBasedStatusBarAppearance设置为NO,但在iPad mini上仍可显示状态栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个iPhone应用,UIViewControllerBasedStatusBarAppearance设置为NO。在我测试过的任何设备(iPhone 4,5,5s,5c,iPad 4ish)上都没有显示状态栏。除了iPad mini(第一代)。
使用iOS SDK是7.1。

I have an iPhone app with UIViewControllerBasedStatusBarAppearance set to NO. Not on any device I have tested with (iPhone 4, 5, 5s, 5c, iPad 4ish) is the status bar visible. Except on the iPad mini (1st gen). Using iOS SDK is 7.1.

状态栏在iPad mini 1st gen上可见。我希望状态栏也隐藏在这个设置上。

The status bar is visible on iPad mini 1st gen. I expect the status bar to be hidden on this setup as well.

我甚至尝试添加 [[UIApplication sharedApplication] setStatusBarHidden:NO]; didFinishLaunchingWithOptions 但它没有改变任何东西。

I even tried adding [[UIApplication sharedApplication] setStatusBarHidden:NO]; to didFinishLaunchingWithOptions but it's not changing anything.

状态栏样式也设置为在应用程序启动期间隐藏。

Status Bar Style is also set to "Hide during application launch".

iPad mini运行iOS 7.1。

The iPad mini runs iOS 7.1.

是的,这是一个优势但是我这次无法得到预期的结果。

Yes, it's an edge case but I just can't get it to come up with expected results this time.

还有一点信息:我正在使用cocos2d-iphone v2.1。从来没有遇到过这个问题,因为我已经发布了一堆具有相同引擎的应用程序。 我开始认为这是一个与组合相关的错误:iOS 7.1和iPad mini。

One more bit of info: I'm using cocos2d-iphone v2.1. Never ran into this problem before as I have released a bunch of apps with the same engine. I'm beginning to think this is a bug relating to the combination: iOS 7.1 and iPad mini.

这是设置:

推荐答案

这是iPad Mini iOS 7.1版中的一个错误。

This is a bug in the iPad Mini iOS version 7.1.

以典型的方式,他们修复了一个问题(空白状态栏)并创建了另一个问题。

In typical fashion, they fixed one problem (a blank status bar) and created another one.

请务必向Apple报告错误。

Be sure to report the error to Apple.

这篇关于尽管将UIViewControllerBasedStatusBarAppearance设置为NO,但在iPad mini上仍可显示状态栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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