You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/05/27 03:46:16 UTC
[GitHub] [cordova-plugin-statusbar] derweise commented on issue #164: Add new styleDarkContent
derweise commented on issue #164:
URL: https://github.com/apache/cordova-plugin-statusbar/issues/164#issuecomment-633858234
> for me works this
>
> if( this.style == 'dark') {
> this.statusBar.backgroundColorByHexString('#000000');
> this.statusBar.styleDefault()
> }else{
> this.statusBar.backgroundColorByHexString('#ffffff');
> this.statusBar.styleLightContent();
> }
>
> But I change this line in CDVStatusBar.m in my xcode project
>
> * (void) styleLightContent:(CDVInvokedUrlCommand*)command
> {
> [self setStyleForStatusBar:UIStatusBarStyleDarkContent]; ---> this UIStatusBarStyleDarkContent for ios 13.0
> }
How can I retrieve in `CDVStatusBar.m` the iOS version of the device and then set the value accordingly?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org