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

Want to get month and year when user scroll the calander #126

Closed
deepakcmbi opened this issue Jul 25, 2017 · 2 comments
Closed

Want to get month and year when user scroll the calander #126

deepakcmbi opened this issue Jul 25, 2017 · 2 comments
Labels

Comments

@deepakcmbi
Copy link

I have a requirement where i need to call API by passing the Month and Year as soon as user scroll to next or previous month. Can you create a delegate method that return the Month and Year where the scroll is?

I hope i explained it correctly. Let me know if you have any question.

Thanks,
Deepak

@ruslanskorb
Copy link
Owner

You can 1) create a subclass of RSDFDatePickerView, 2) override collectionView:willDisplaySupplementaryView:atIndexPath: method, 3) get a date using dateForFirstDayInSection: method, 4) extract month and year from the date and include them into an API call.

@deepakcmbi
Copy link
Author

Thanks for your quick and prompt reply.. It would be great if you could help me with the code.. i tried but did not succeeded yet. I will try it tomorrow morning.

Thanks Again :)

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

No branches or pull requests

2 participants