Dec 7, 2014 Replies: 5 You can hide the status bar by following these steps: 1. Add this attribute: Code: Copy #PlistExtra: <key>UIViewControllerBasedStatusBarAppearance</key><false/> 2. Add this code: Code: Copy Dim no As NativeObject = app no.RunMethod("setStatusBarHidden:animated:", Array(True, False)) Click to expand...
You can hide the status bar by following these steps: 1. Add this attribute: Code: Copy #PlistExtra: <key>UIViewControllerBasedStatusBarAppearance</key><false/> 2. Add this code: Code: Copy Dim no As NativeObject = app no.RunMethod("setStatusBarHidden:animated:", Array(True, False))
Erel B4X founder Staff member Licensed User Longtime User Feb 6, 2015 #2 Setting the status bar to use a light theme: Code: Copy Sub SetStatusBarStyleLight Dim no As NativeObject = app no.RunMethod("setStatusBarStyle:", Array(1)) End Sub Make sure to add the attribute from the first post.
Setting the status bar to use a light theme: Code: Copy Sub SetStatusBarStyleLight Dim no As NativeObject = app no.RunMethod("setStatusBarStyle:", Array(1)) End Sub Make sure to add the attribute from the first post.
JackKirk Well-Known Member Licensed User Longtime User Feb 5, 2016 #3 Is there a way to determine status bar state? I would like to: (1) Determine status bar state. (2) If visible - hide it via post #1. (3) Do stuff. (4) If was originally visible - reshow it. Thanks...
Is there a way to determine status bar state? I would like to: (1) Determine status bar state. (2) If visible - hide it via post #1. (3) Do stuff. (4) If was originally visible - reshow it. Thanks...
Erel B4X founder Staff member Licensed User Longtime User Feb 5, 2016 #4 Code: Copy Sub IsStatusBarHidden As Boolean Dim no As NativeObject = App Return no.GetField("statusBarHidden").AsBoolean End Sub
Code: Copy Sub IsStatusBarHidden As Boolean Dim no As NativeObject = App Return no.GetField("statusBarHidden").AsBoolean End Sub
JackKirk Well-Known Member Licensed User Longtime User Mar 16, 2019 #5 After you hide the status bar as per post #1, how do you show it again? Code: Copy Dim no As NativeObject = app no.RunMethod("setStatusBarHidden:animated:", Array(False, False)) doesn't seem to work - or it may be putting up a blank status bar. I've googled without success. BTW it appears that setStatusBarHidden:animated is well and truly deprecated so is a more up to date means possible? Thanks in advance... Last edited: Mar 16, 2019
After you hide the status bar as per post #1, how do you show it again? Code: Copy Dim no As NativeObject = app no.RunMethod("setStatusBarHidden:animated:", Array(False, False)) doesn't seem to work - or it may be putting up a blank status bar. I've googled without success. BTW it appears that setStatusBarHidden:animated is well and truly deprecated so is a more up to date means possible? Thanks in advance...
Erel B4X founder Staff member Licensed User Longtime User Mar 17, 2019 #6 You should never post in old threads. Please start a new one.