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

[Bug] Changing Scope #218

Closed
lucianocn opened this issue Feb 23, 2016 · 4 comments
Closed

[Bug] Changing Scope #218

lucianocn opened this issue Feb 23, 2016 · 4 comments

Comments

@lucianocn
Copy link

Bug 1:

Changing the scope several times will increase more and more the calendar size.

- (IBAction)btnTest:(id)sender
{
    if ([self.fsCalendar scope] == FSCalendarScopeWeek) {
        [self.fsCalendar setScope:FSCalendarScopeMonth];
    } else {
        [self.fsCalendar setScope:FSCalendarScopeWeek];
    }
}

Bug 2:

Changing the scope with animated: YES, will crash the app if you try to change again in the middle of an animation.

- (IBAction)btnTest:(id)sender
{
    if ([self.fsCalendar scope] == FSCalendarScopeWeek) {
        [self.fsCalendar setScope:FSCalendarScopeMonth animated:YES];
    } else {
        [self.fsCalendar setScope:FSCalendarScopeWeek animated:YES];
    }
}
@WenchaoD
Copy link
Owner

Both happened in the latest version?

@lucianocn
Copy link
Author

@WenchaoIOS yeah - FSCalendar (1.8.1)!

@WenchaoD
Copy link
Owner

This should've been fixed, but without release. Mind give it a try? Or just see the "FSCalendarScopeExample"?

@lucianocn
Copy link
Author

@WenchaoIOS I'll test and I'll keep in touch.

@131bba5

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