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

Preload month data by delegate #51

Open
vdvleon opened this issue Jan 19, 2015 · 0 comments
Open

Preload month data by delegate #51

vdvleon opened this issue Jan 19, 2015 · 0 comments

Comments

@vdvleon
Copy link

vdvleon commented Jan 19, 2015

It would be a very usefull functionality to know which months are (about to be) visible. This way I can load data for the day cells. It would be usefull to have delegate functions like:

func simpleCalendarViewController(controller: PDTSimpleCalendarViewController!, monthCanAppear date: NSDate!)
func simpleCalendarViewController(controller: PDTSimpleCalendarViewController!, monthDidAppear date: NSDate!)
func simpleCalendarViewController(controller: PDTSimpleCalendarViewController!, monthDidDisappear date: NSDate!)

Here date would be the first of the month. Two ints (year and month) could work aswell.

A setting could determine how many months 'can appear' when scrolling (for example preload 2 months who are not in visible yet).

This way I can preload additional data about the dates in that month (in my case availibility information for a reservation system).

I can imagine other people would like this feature aswell.

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

1 participant