UIDatePicker working fine with all iOS devices but the same code does not work for mac app (mac catalyst).
I am using xCode 12.2 to run the app, below is my code which I applied for mac catalyst but nothing works.
if (@available(macCatalyst 14.0, *)) {
datePicker.preferredDatePickerStyle = UIDatePickerStyleWheels;
datePicker.datePickerMode = UIDatePickerModeDate;
}
txtView.inputView = datePicker;
txtView.inputAccessoryView = [self createDatePickerToolBar];
anyone have an idea what can be the solution to display UIDatePicker in mac catalyst?
Thanks!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…