cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Morgan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-5265) Status Bar Plugin/Camera Plugin. Taking a photo or choosing a photo from library makes the status bar style back to black.
Date Wed, 27 Nov 2013 19:39:35 GMT

    [ https://issues.apache.org/jira/browse/CB-5265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13834073#comment-13834073
] 

Daniel Morgan commented on CB-5265:
-----------------------------------

Setting that key to true works! I originally overrode the value because we were handling the
status bar via CSS in our app, and I needed it false for that to work. But now we're using
the status bar plugin, so I set it back to true and the status bar text is always white.

This fix is better than my solution posted originally because if the user pressed back from
the photo library picker the text would go to black again.  Since it's just a pop off the
navigation controller stack willShowViewController doesn't get called again and the status
bar text color gets over written.

> Status Bar Plugin/Camera Plugin. Taking a photo or choosing a photo from library makes
the status bar style back to black.
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-5265
>                 URL: https://issues.apache.org/jira/browse/CB-5265
>             Project: Apache Cordova
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>         Environment: iOS 7
>            Reporter: Daniel Morgan
>              Labels: camera, ios7, statusbar
>
> We're using a black status bar and the StatusBarStyleLightContent to simulate the pre-iOS
7 status bar with the status bar plugin.  When a user takes a photo or choose from library
the status bar style goes back to black; making a black status bar  with black text. My quick
fix is to add in CDVCamera under navigationController:willShowViewController:animated to set
the status bar style back to white: [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];,
but of course this only works for me since I want the status bar style to be white everywhere
in my application.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message