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

[self.calendarView scrollToDate:stDate animated:YES/NO]; #51

Open
rossrossp opened this issue Jan 5, 2014 · 1 comment
Open

[self.calendarView scrollToDate:stDate animated:YES/NO]; #51

rossrossp opened this issue Jan 5, 2014 · 1 comment

Comments

@rossrossp
Copy link

Hi guys,
I have noticed that this method doesn't seem to function correctly (or I have incorrectly implemented it.)
The calendar does not scroll to the desired date, (with animated as either YES or NO) but if you scroll the calendar down, the next month will be correct, and if you scroll back up again the startDate's month will now be visible.
It is as if the calendar needs to be refreshed after the scroll to show the startDate's month correctly.

Have you seen this before?
Many thanks,
Ross Patman.

@rossrossp
Copy link
Author

I have added a: [self.tableView reloadData];
between:
NSInteger section = [self sectionForDate:date];

and:
[self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:section] atScrollPosition:UITableViewScrollPositionTop animated:animated];

In the scrollToDate method and it seems to be functioning correctly.

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