【发布时间】:2021-12-27 01:06:57
【问题描述】:
我正在开发一个 Cordova 应用程序。在 index.html 中有一个。 在 iOS 应用程序中,它被转换为 UIPickerView。
这是 index.html 中 select 标记的样子
<div class="list">
<label class="item item-input item-select">
<div class="input-label">
Lightsaber
</div>
<select>
<option>Blue</option>
<option selected>Green</option>
<option>Red</option>
</select>
</label>
</div>
所以当用户点击它时,它会打开一个 UIPickerView,如下所示。
我想更改 UIPickerView 的背景颜色(比如绿色)。有没有办法覆盖原生 Swift/Objective-C 中的属性?
【问题讨论】:
标签: ios objective-c xcode cordova uipickerview