Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date picker on iOS 14 #492

Closed
MikeZTM opened this issue Jul 24, 2020 · 4 comments
Closed

Date picker on iOS 14 #492

MikeZTM opened this issue Jul 24, 2020 · 4 comments

Comments

@MikeZTM
Copy link

MikeZTM commented Jul 24, 2020

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
Copy link

bb-git commented Aug 25, 2020

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

@bb-git
Copy link

bb-git commented Aug 25, 2020

In ActionSheetDatePicker.m inside - (UIView *)configuredPickerView

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

@skywinder
Copy link
Owner

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

@KunzManuel
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants