Open maulikshah09 opened 3 years ago
@maulikshah09 You need to change the picker style for the library
how can i select date here??
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
@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];
yes it's work fine but right side space is display.
yes it's work fine but right side space is display.
datePickerStyle
using this code.Let me know if this helps.
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.
Check on iphone 11 pro. space is display @glennposadas
@maulikshah09 can you please share the screenshot with the space?
@noorulain17 Hello. Here it is.
@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 :)
Super cool! thank you so much!
On Wed, Jan 6, 2021 at 4:08 PM Noor ul Ain Ali notifications@github.com wrote:
@glennposadas https://github.com/glennposadas this issue has been fixed in this commit https://github.com/skywinder/ActionSheetPicker-3.0/commit/e279354b10eb5ccd4847a211866346c971ac1919 in PR #511 https://github.com/skywinder/ActionSheetPicker-3.0/pull/511 by @palmtrae https://github.com/palmtrae.
Please update your library to the latest version and share your findings again :)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/skywinder/ActionSheetPicker-3.0/issues/524#issuecomment-755150722, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC7MNF6DRYY7SX2DZEDNTSDSYQLA5ANCNFSM4T56H65Q .
-- Best Regards, Glenn Posadas
On a second thought, @noorulain17 what we wanted to raise is the picker not being centered.