Closed poc7667 closed 9 years ago
Hey @poc7667 ! Can you try the branch in #670 to see if that fixes anything?
I'm having the same problem. Still can't hide status_bar. I'm using ProMotion 2.4.2.
@carlinisaacson , would you mind looking at this sometime?
@jiajiawang I looked into this and the way we are setting status bar to hidden in the app delegate doesn't appear to be working correctly. We will have to dig into this more.
In the meantime, you can hide the status bar on the screen itself by:
Rakefile:
app.info_plist["UIViewControllerBasedStatusBarAppearance"] = false
Screen:
class MyScreen < PM::Screen
title "My Screen"
status_bar :none
end
@carlinisaacson It works. Thank you for your help.
No problem.
I looked into the issue with hiding it in the app delegate and found that even though we set it to hidden in the app delegate the screen is defaulting to show the status bar if you don't call status_bar
in your screen.
We can probably tell it to default to show unless it is already hidden.
Also I found that setting
app.info_plist['UIStatusBarHidden'] = true
in the rakefile will hide it on the splash screen as well. Setting status_bar false
won't.
Rake file
I use
promotion
in my app.Applied the following settings, but the status bar still shows on my screen
app_delegate.rb
Rakefile
Bundle list