Did you verify this is a real problem by searching Stack Overflow?
Yep :) http://stackoverflow.com/questions/36989709/nativescript-cannot-change-ios-status-bar-color
Tell us about the problem
As of the 2.0 release, I am no longer able to change the iOS status bar’s text color.
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
- CLI: 2.0.0
- Cross-platform modules: 2.0.0
- Runtime(s): 2.0.0
Please tell us how to recreate the issue in as much detail as possible.
Use the following main-page.xml:
<Page loaded="loaded">
<Page.actionBar>
<ActionBar title="Whatever"></ActionBar>
</Page.actionBar>
</Page>
And the following main-page.js:
var frameModule = require("ui/frame");
exports.loaded = function(args) {
var page = args.object;
if (page.ios) {
var navigationBar = frameModule.topmost().ios.controller.navigationBar;
navigationBar.barStyle = UIBarStyle.UIBarStyleBlack;
}
};
This code changed the iOS status bar to use white text with version 1.7.1 of the modules, but now it has no effect.
Thanks.
Reactions are currently unavailable
Did you verify this is a real problem by searching Stack Overflow?
Yep :) http://stackoverflow.com/questions/36989709/nativescript-cannot-change-ios-status-bar-color
Tell us about the problem
As of the 2.0 release, I am no longer able to change the iOS status bar’s text color.
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
Please tell us how to recreate the issue in as much detail as possible.
Use the following main-page.xml:
And the following main-page.js:
This code changed the iOS status bar to use white text with version 1.7.1 of the modules, but now it has no effect.
Thanks.