I'm trying to change the background color of the HTML select element from the default dark gray on iOS 9 to white. I stumbled across this Phonegap/Cordova plugin: https://github.com/EddyVerbruggen/iOSWebViewColor-PhoneGap-Plugin but I'm not having much luck making it work. Any one else able to get this working on iOS 9?
I tried the sample code in my Ionic project, but there's no effect.
window.plugins.webviewcolor.change('#FFFFFF')
Here's what I've tried:
- Modifying theWebView.backgroundColor on line 107 in
MainViewController.m - Modifying the MainViewController.xib file and unchecking Opaque.
- Modifying the Objective-C code of the Cordova plugin to force
[UIColor whiteColor]
Nothing works.