FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Cannot change the iOS status bar text color since 2.0 · Issue #2062 · NativeScript/NativeScript · GitHub

Cannot change the iOS status bar text color since 2.0 #2062

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL