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

Identify when a user selected a date. #50

Open
markst opened this issue Jan 13, 2015 · 2 comments
Open

Identify when a user selected a date. #50

markst opened this issue Jan 13, 2015 · 2 comments

Comments

@markst
Copy link

markst commented Jan 13, 2015

I'm changing a table view scroll whenever the delegate didSelectDate: is called.
Though I'm also selecting a date programatically sometimes, which results in didSelectDate: being called when I don't need it to be. Is it possible to identify when a user has selected a date & when I have set the selected date?

@jmig
Copy link
Contributor

jmig commented Jan 13, 2015

Yes at the moment, when you actually set the new selectedDate, the delegate gets called.
I know it can be frustrating.
If you can come up with an elegant solution on how to handle that directly from the library let me know.

Otherwise it's gonna be some if/else in your code to ignore a "programatically set date".
One solution would be to nil-out the delegate juste before and set it back after. or the delegate having access to the programmatically set date, so it can ignore it and exit early.

@RB-King
Copy link

RB-King commented Apr 26, 2017

@jmig Please help me with this #98

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

3 participants