squimer / DatePickerDialog-iOS-Swift

Date picker dialog for iOS
MIT License
584 stars 178 forks source link

Bug on iOS 14 | _UIDatePickerIOSCompactView _setTextColor | #109

Open yahyatabba opened 4 years ago

yahyatabba commented 4 years ago

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

banghuazhao commented 3 years ago

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.