Post

Replies

Boosts

Views

Activity

iOS14: Set text color in UIDatePicker
I am using Xcode Version 12.0 (12A7208) with… picker.preferredDatePickerStyle = .wheels I have tried: picker.setValue(UIColor.white, forKeyPath: "textColor") // crash and … picker.tintColor = UIColor.white // no change and … UILabel.appearance(whenContainedInInstancesOf: [UIDatePicker.self]).textColor = UIColor.white // no change
4
0
6.0k
Sep ’20