在 iOS 中与 InAppBrowser 插件一起使用时如何更改状态栏颜色?

How to change statusbar color when used alongside InAppBrowser plugin in iOS?

我正在尝试更改 InAppBrowser 状态栏颜色,默认情况下使用 cordova-plugin-statusbar 亮起内容,但将始终保持白色。我怎样才能把它改成其他颜色?我尝试使用 StatusBar.backgroundColorByHexString 和 StatusBar.styleBlackOpaque 但 none 有效...

我自己更新了 InAppBrowser 插件,在 CDVInAppBrowser.m,我添加了这一行

self.addressLabel.backgroundColor = [UIColor colorWithRed:0.5 green:0.5 blue:0.5 alpha:1.0];

即使在 InAppBrowser 内部,这也会更改 StatusBar 颜色,使用 StatusBar 插件标志不会更改。