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

Tap "Select" before spinning ends, return pre-edited value #25

Open
japanconman opened this issue May 28, 2014 · 2 comments
Open

Tap "Select" before spinning ends, return pre-edited value #25

japanconman opened this issue May 28, 2014 · 2 comments

Comments

@japanconman
Copy link

This might be Apple UIDatePicker issue as well.

While the picker is animating, if user tap on "Select", UI seems wait for a while to let datePicker settle down to the final value, but the return value will still show the original value.

Tried capturing value through UIControlEventValueChanged, seems it able to return the final value even if DateSelectionViewController is dismissed.

I'm not sure how it could be patched in the component itself since UIDatePicker doesn't expose much info about the UI. Maybe you have some better idea.

@CooperRS
Copy link
Owner

My control asks the UIDatePicker for the selected date right after the user taps select. At that time the animation is still running and thus no new date has been selected.

At the moment I have no real idea how to fix this. UIDatePicker does not tell anyone when the animation has been finished. If anyone has a idea, please tell me :)

@benguild
Copy link

benguild commented Oct 5, 2016

Dealing with this as well: CooperRS/RMPickerViewController#50

It seems like an OS-level issue and my only thought is maybe (as a workaround) perhaps during the animation of the view disappearing... the picker could remain allocated somewhere so that the animation could finish and the actual correct choice can be registered?

That, or just putting an actual time delay on it. I wouldn't want to mess up the UX, but it's sort of messed up already to be honest.

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

3 participants