How to change status bar background colour to black in ios

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

I want change the status bar background colour to black in ios. The status bar style property just changing the text colour of content in the status bar.

Dear,

Try using the below API

function setApplicationProperties()

{

kony.application.setApplicationProperties({

"statusBarColor": "ffff0000",

"statusBarForegroundColor": "ff0000",

"statusBarHidden": true,

"statusBarStyle": constants.STATUS_BAR_STYLE_LIGHT_CONTENT,

"navigationBarColor" : ffff0000,

"systemUiConfig" : constants.HIDE_SYSTEM_BARS

});

}

The statusBarForegroundColor and statusBarStyle input parameters are not available on Android.

Please note that that Status Bar color will depend upon following

1) Form title bar BG color, if the form contains title bar then status bar pickup the title bar color

2) If title bar is not present then it will pick up the form BG color.

If you want to change the status bar color without using form BG Color and Title Bar color, For iOS platform there is no property/API exposed by the Kony to achieve your requirement.

You can achieve this using AppDelegateExtension.

To set the statubar background color using native iOS coding, add/replace the attached AppDelegateExtension folder into Xcode project after extracting the KAR file into your iOS plugins.

1. In the attached AppDelegateExtension file we can see five files related to AppDelegate.

3. In the AppDelegateWrapper.m file, we have written the code to change status bar color.

2. We have set the status bar background color to green, you can change the color which you need.

statusBar.backgroundColor = [UIColor greenColor];

Please refer the attached AppDelegateExtension folder for your reference.

Hi,

1. Create a New Form,change its background color to Black

2.Place a new flex Container on that form change its background color to any and increase its opacity to 100.

3.Flex should be top:0 , Left-0, Width-100, height 100

4.select Form->go to properties(on the right)->selct Form in that we have "configure status bar Style" make it on , you'll get Status bar style -> selcct "light Content".

Hi,

Can we make status bar transparent for both android & iPhone using kony APIs?

If no Kony API is available can anyone have FFI?

Thanks