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

ios 14 issue display picker only one date ? #524

Open
maulikshah09 opened this issue Nov 21, 2020 · 13 comments
Open

ios 14 issue display picker only one date ? #524

maulikshah09 opened this issue Nov 21, 2020 · 13 comments

Comments

@maulikshah09
Copy link

Simulator Screen Shot - iPhone 8 - 2020-11-22 at 00 02 44

@noorulain17
Copy link
Collaborator

@maulikshah09 You need to change the picker style for the library

@maulikshah09
Copy link
Author

how can i select date here??

@maulikshah09
Copy link
Author

maulikshah09 commented Nov 22, 2020

can you help me to sort out this ... my app is mostly used your third party app..currently i am stuck and client also frustrated how can i change picker older way or another approach to view good picker UI

@sourabh31
Copy link

@maulikshah09 you need to update some code

in class "ActionSheetDatePicker.m" --> function "- (UIView *)configuredPickerView"

add below line of code, after that its work fine

[datePicker setPreferredDatePickerStyle:UIDatePickerStyleWheels];

@maulikshah09
Copy link
Author

yes it's work fine but right side space is display.

@noorulain17
Copy link
Collaborator

yes it's work fine but right side space is display.

  1. Which version of the library are you using?
  2. You can change the datePickerStyle using this code.

Let me know if this helps.

@glennposadas
Copy link

just set your datePickerStyle to UIDatePickerStyleWheels.

Example:

  ActionSheetDatePicker *actionSheetPicker = [[ActionSheetDatePicker alloc] initWithTitle:title datePickerMode:UIDatePickerModeDate selectedDate:dateValue target:self action:@selector(dateWasSelected:element:) origin:self];
  if (@available(iOS 13.4, *)) {
    actionSheetPicker.datePickerStyle = UIDatePickerStyleWheels;
  }
  [actionSheetPicker showActionSheetPicker];

No need to modify the library.

@maulikshah09
Copy link
Author

Check on iphone 11 pro. space is display @glennposadas

@noorulain17
Copy link
Collaborator

@maulikshah09 can you please share the screenshot with the space?

@glennposadas
Copy link

Screen Shot 2021-01-04 at 5 53 37 PM

@noorulain17 Hello. Here it is.

@noorulain17
Copy link
Collaborator

@glennposadas this issue has been fixed in this commit in PR #511 by @palmtrae.

Please update your library to the latest version and share your findings again :)

@glennposadas
Copy link

glennposadas commented Jan 6, 2021 via email

@glennposadas
Copy link

On a second thought, @noorulain17 what we wanted to raise is the picker not being centered.

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

No branches or pull requests

4 participants