DatePickerDialog-iOS-Swift icon indicating copy to clipboard operation
DatePickerDialog-iOS-Swift copied to clipboard

Bug on iOS 14 | _UIDatePickerIOSCompactView _setTextColor |

Open yahyatabba opened this issue 5 years ago • 1 comments

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

yahyatabba avatar Jul 12 '20 08:07 yahyatabba

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.

banghuazhao avatar Oct 13 '20 14:10 banghuazhao