objc-TimesSquare icon indicating copy to clipboard operation
objc-TimesSquare copied to clipboard

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

Open rossrossp opened this issue 11 years ago • 1 comments

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 avatar Jan 05 '14 21:01 rossrossp

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.

rossrossp avatar Jan 05 '14 21:01 rossrossp