iOS Question How can I set bar style for SideMenuController?

Keith Yong

Active Member
Licensed User
Longtime User
Understand that Navigation Controller can set the bar style to different color with code below, but how do I apply it for SideMenuController?

B4X:
    Dim no As NativeObject = NavControl
    no.GetField("navigationBar").RunMethod("setBarStyle:", Array(1))

Screen Shot 2016-04-11 at 11.59.46 AM.png
Screen Shot 2016-04-11 at 11.59.55 AM.png
 

Keith Yong

Active Member
Licensed User
Longtime User
You can use this code to change the color of the 'MainController' bar style.

The side menus doesn't include a bar.


Hi Erel, What I mean is the status bar. Actually it did show, just because the background color is black that's why you can't see the status bar on top.
 
Upvote 0

Keith Yong

Active Member
Licensed User
Longtime User
You can change it with this code:
B4X:
Dim no As NativeObject = smc
no.SetField("showsStatusBarBackgroundView", True)
no.SetField("statusBarViewBackgroundColor", no.ColorToUIColor(Colors.Gray))


Thanks Erel, how about to set the color font for status bar for SideMenuBarController?
 
Upvote 0
Top