DatePickerDialog-iOS-Swift
DatePickerDialog-iOS-Swift copied to clipboard
Bug on iOS 14 | _UIDatePickerIOSCompactView _setTextColor |
hello,
when the date picker dialog show on devices that use iOS 14, this error show:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_UIDatePickerIOSCompactView _setTextColor:]: unrecognized selector sent to instance 0x7f7ffc4b89c0'
How can i fix the bug? THank you
Same issue.
From Stackoverflow: UIDatePicker crash on iOS 14 while setting textColor via KVC
So I commented the line datePicker.setValue(self.textColor, forKeyPath: "textColor") in file DatePickerDialog.swift. Hope the bug is fixed.