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

Fix for UIDatePickerModeCountDownTimer callback #50

Merged
merged 2 commits into from
Sep 29, 2014

Conversation

jklp
Copy link

@jklp jklp commented Sep 20, 2014

If presenting an ActionSheetDatePicker with a datePickerMode of
UIDatePickerModeCountDownTimer, currently returns the current date in
the callback.

In this instance, would be much better to return the duration as that
is what the user is picking, not a date

If presenting an ActionSheetDatePicker with a datePickerMode of
UIDatePickerModeCountDownTimer, currently returns the current date in
the callback.

In this instance, would be much better to return the duration as that
is what the user is picking, not a date
@jklp
Copy link
Author

jklp commented Sep 20, 2014

Heya, just found a small bug in the date picker which is different from the pre-3.0 version (which was how I found it after I upgraded).

Let me know what you think, thanks!

If user taps “done” without picking a time, currently returns a
callback of 0 seconds though this is incorrect as the default selection
in the popup is 1 minute (note, user also can’t select 0 minutes).

Fixed so when date picker first instantiated, will set the selected
duration as 60 seconds
@jklp jklp closed this Sep 20, 2014
@jklp
Copy link
Author

jklp commented Sep 20, 2014

Apologies, please see next pull request which has a minor bug fix

@jklp
Copy link
Author

jklp commented Sep 20, 2014

Ok clearly I don't know how pull requests work on github (I didn't realise they automatically get added together) - see re-opened pull request with 2 commits this time :)

@jklp jklp reopened this Sep 20, 2014
@skywinder
Copy link
Owner

@jklp Thanks! I'll review it soon.

skywinder added a commit that referenced this pull request Sep 29, 2014
Fix for UIDatePickerModeCountDownTimer callback
@skywinder skywinder merged commit ba8aee3 into skywinder:master Sep 29, 2014
@skywinder
Copy link
Owner

@jklp Hi. Since I never use your addition, can you add some comment to #72, as author of this enchantment?

@skywinder
Copy link
Owner

You also forgot to add countdownDuration support to block-based callbacks.
62d1dbb should fix it.

skywinder added a commit that referenced this pull request Oct 15, 2014
- Remove unused init function.
- Add CountDownTimer support to blocks.
- Remove redudant countDownDuration init
skywinder added a commit that referenced this pull request Oct 15, 2014
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

Successfully merging this pull request may close these issues.

2 participants