skywinder / ActionSheetPicker-3.0

Quickly reproduce the dropdown UIPickerView / ActionSheet functionality on iOS.
http://skywinder.github.io/ActionSheetPicker-3.0
BSD 3-Clause "New" or "Revised" License
3.4k stars 740 forks source link

Date picker on iOS 14 #492

Closed MikeZTM closed 4 years ago

MikeZTM commented 4 years ago

iOS 14 changed the style of UIDatePicker and need extra preferredDatePickerStyle to be set to have wheel style like before.

Right now it default to automatic which looks like a button with a popup date picker on click.

bb-git commented 4 years ago

Any update on this issue? Might get urgent with the release of iOS 14.

bb-git commented 4 years ago

In ActionSheetDatePicker.m inside - (UIView *)configuredPickerView

add if (@available(iOS 14, *)) { [datePicker setPreferredDatePickerStyle:UIDatePickerStyleWheels]; }

skywinder commented 4 years ago

@bb-git Thank you. Would you mind to make a pull request?

KunzManuel commented 4 years ago

@bb-git You can now set the datePickerStyle in the ActionSheetDatePicker.h.