Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
502 views
in Technique[技术] by (71.8m points)

ios - Status bar visible on iPad mini despite setting UIViewControllerBasedStatusBarAppearance to NO

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.

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

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".

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.

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.

This is the setup:

Plist setup looks like this

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I faced same problem and I want to bring some explanations.

The problem occurs only when you start iPhone (only) application on iPad. If application is universal there won't be any problem. The most annoying behavior occurs using iPhone only application on iPad without Retina display. Because status bar overrides top part of application.


My plist file:

enter image description here


iPhone only application

iPhone

enter image description here

iPad:

enter image description here

iPad Retina:

enter image description here


Universal application

iPhone:

enter image description here

iPad:

enter image description here

iPad Retina:

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...