Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 443
Jonny Avatar asked Mar 17 '14 11:03

Jonny


People also ask

How do I hide my status bar on iOS 15?

Inside Privacy, tap on the 'Location Services' option. Scroll down the list of apps listed on the next screen and select 'System Services'. You will see a list of system services on this screen. Scroll down and toggle OFF the 'Status Bar Icon' option.

How do you hide the status bar on iOS 14?

To completely hide it on the home screen, open up an app, such as Settings, and wait about three to four seconds. Press the home button again, and the status bar will be completely gone. The status bar will only be hidden on your home screen, so you'll still see it while using apps.

What is the phone icon at the top of my iPad?

You have Handoff activated on both your iPhone and iPad to be able to directly share data and info between your iOS devices.


2 Answers

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

like image 76
GxocT Avatar answered Sep 20 '22 03:09

GxocT


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.

Be sure to report the error to Apple.

like image 39
Giebler Avatar answered Sep 22 '22 03:09

Giebler