objc-TimesSquare
objc-TimesSquare copied to clipboard
[self.calendarView scrollToDate:stDate animated:YES/NO];
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.
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.