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

Set a fixed number of weeks #6

Open
pscarnegie opened this issue Jan 5, 2017 · 2 comments
Open

Set a fixed number of weeks #6

pscarnegie opened this issue Jan 5, 2017 · 2 comments

Comments

@pscarnegie
Copy link

Is there a way where you can set a fixed number of weeks available to display. For example, if I only want to be able to display the four weeks of February, and the current date is November, I'd have to scroll all the way back to February when launched. Can I set a start and stop date for display updates?

@nighthawk
Copy link
Owner

There's no way (so far) to limit the number of weeks that are displayed, but we've had a similar use case where the app is mostly usable for a given time period, and what we did was this:

  1. Initialise selectedDate to the start date of that date range (at least if it's after "today")
  2. Implement the weekSelector: numberColorForDate: delegate and return grey for dates outside that time range.

That way there's at least a visual indication whether you're within the date range that's covered and you don't need to scroll manually to find the start of that range.

@pscarnegie
Copy link
Author

pscarnegie commented Jan 10, 2017 via email

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

2 participants