You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Zoltan Birner (JIRA)" <ji...@apache.org> on 2014/10/23 17:08:34 UTC
[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.
[ https://issues.apache.org/jira/browse/CB-5265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14181431#comment-14181431 ]
Zoltan Birner commented on CB-5265:
-----------------------------------
Hi,
Just add
[[UIApplication sharedApplication] setStatusBarHidden:YES];
into - (void)viewWillAppear:(BOOL)animated (MainViewController.m)
> 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
> Components: Plugin Statusbar
> Affects Versions: 3.1.0
> Environment: iOS 7, test with org.apache.cordova.camera plugin
> Reporter: Daniel Morgan
> Labels: camera, ios7, statusbar-plugin
>
> 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.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org