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

Ability to jump to any month #56

Closed
thomasbaldwin opened this issue Apr 26, 2015 · 2 comments
Closed

Ability to jump to any month #56

thomasbaldwin opened this issue Apr 26, 2015 · 2 comments

Comments

@thomasbaldwin
Copy link
Contributor

Not so much a bug, just an enhancement I thought would be cool. Maybe make a delegate method loadMonth(int monthNumber) where monthNumber is the month to switch to (i.e 0 is January and 12 is December)

@mozharovsky
Copy link
Member

Hello @thomasbaldwinj,

This feature is available since the release version. All you have to do is to use a convenience method toggleViewWithDate(date: NSDate). Your code may look like one below.

    func loadDecember2015() {
        let december2015: NSDate
        // calculations with NSCalendar and NSCalendarComponents 
        // december2015 initialization 

        calendarView.toggleViewWithDate(december2015)
    }

That's it. The given code sample would work with the code in the develop branch.

Regards,
Eugene

@thomasbaldwin
Copy link
Contributor Author

Thanks a lot!

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