Xcode - UIDatePicker background color
ios5, objective-c
Solution
iOS 14 update
It looks that `datePicker.backgroundColor` doesn't work in iOS 14. It works. But you have to put it after `preferredDatePickerStyle` setting:
let picker = UIDatePicker()
if #available(iOS 13.4, *) {
picker.preferredDatePickerStyle = .wheels
}
picker.backgroundColor = .red
Problem
My UIDatePicker's background is black (because the background for the whole screen is black probably), but I want white in the background for this UIDatePicker. Is there any way to change the background color without subclassing it?