Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPad translucent status bar?

Tags:

statusbar

ipad

Is there no way to make the status bar translucent for the iPad. I get this error when trying to do this: UIStatusBarStyleBlackTranslucent is not available on this device.

like image 915
marchinram Avatar asked Apr 13 '26 17:04

marchinram


2 Answers

The iPad doesn't support the translucent status bar.

On iPad devices, the UIStatusBarStyleDefault and UIStatusBarStyleBlackTranslucent styles default to the UIStatusBarStyleBlackOpaque appearance.

It's probably Apple considers the screen is so big that giving 20px (2 ~ 3% of screen size) to the status bar doesn't really matter.

like image 163
kennytm Avatar answered Apr 20 '26 07:04

kennytm


Bizarre. If you write an HTML app with the following meta tag and add it to your home screen, the bar actually IS translucent:

<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">

like image 39
Martin Kool Avatar answered Apr 20 '26 09:04

Martin Kool