iOS status bar issue

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
gianmichele
Citizen
Posts: 69
Joined: Tue Jan 14, 2014 11:03 pm

iOS status bar issue

Post by gianmichele »

Hey there.

I think I might be actually going blind, but I cannot seem to get the status bar on iOS to be hidden.

I've set the .plist "Status bar is initially hidden" to yes and added "View controller-based status bar appearance" to no, but it seems is not working.

The weird thing is that if I run the no-screen love the status bar is hidden while with everything else is visible. Am I missing something?

Thanks,
Gianmichele
User avatar
slime
Solid Snayke
Posts: 3179
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: iOS status bar issue

Post by slime »

The status bar will be hidden on iOS if your window is either fullscreen or borderless (both set in either love.conf or love.window.setMode).
gianmichele
Citizen
Posts: 69
Joined: Tue Jan 14, 2014 11:03 pm

Re: iOS status bar issue

Post by gianmichele »

Thanks slime.

What's the purpose of fullscreen for mobile?
User avatar
Rucikir
Party member
Posts: 129
Joined: Tue Nov 05, 2013 6:33 pm

Re: iOS status bar issue

Post by Rucikir »

hiding the status bar ?
gianmichele
Citizen
Posts: 69
Joined: Tue Jan 14, 2014 11:03 pm

Re: iOS status bar issue

Post by gianmichele »

Well why I can understand the logic behind using borderless to hide the status bar, fullscreen I think might be confusing or non intuitive.
User avatar
slime
Solid Snayke
Posts: 3179
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: iOS status bar issue

Post by slime »

Before iOS 7, the status bar took some screen real-estate away from the app - so by hiding it the app's window would cover the entire screen.
User avatar
Bunnybacon
Prole
Posts: 20
Joined: Fri Mar 25, 2016 8:42 am

Re: iOS status bar issue

Post by Bunnybacon »

I think you have to enable "exclusive" fullscreen mode in conf.lua to ensure that it hides the status bar.
User avatar
slime
Solid Snayke
Posts: 3179
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: iOS status bar issue

Post by slime »

Any fullscreen mode (or borderless set to true) should work fine.
User avatar
gingerbeardman
Prole
Posts: 19
Joined: Mon Sep 14, 2015 7:22 am
Location: United Kingdom
Contact:

Re: iOS status bar issue

Post by gingerbeardman »

Apologies for resurrecting this old thread...

I am trying to hide the status bar on iOS (iPhone XS, iOS 17)

so set up my `conf.lua` as described in this thread:

Code: Select all

function love.conf(t)
    t.window.fullscreen = true
end
i've tried fusing the game in the iOS app, and also not fusing it and running through the picker, but either way it's not hiding the status bar. it flashes for a second, then reappears.

so, should the fullscreen method still hide the iOS status bar in 2025?

edit: resolved, i was doing an additonal love.window.setMode() in my code, removing that resolves it
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 4 guests