I try to select the day after the day user selected. I need to select 2 days - one, that user selected and the next one. In order to do that I try to modify didSelectItemAtIndexPath in FSCalender.m
I do it like so
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
FSCalendarCell *cell = (FSCalendarCell *)[collectionView cellForItemAtIndexPath:indexPath];
cell.dateIsSelected = YES;
[cell performSelecting];
FSCalendarCell *newCellToSelect = (FSCalendarCell *)[collectionView cellForItemAtIndexPath:[NSIndexPath indexPathForRow:indexPath.row+1 inSection:indexPath.section]];
[newCellToSelect performSelecting];
NSDate *selectedDate = [self dateForIndexPath:indexPath];
if (!_supressEvent) {
[self didSelectDate:selectedDate];
}
[self selectCounterpartDate:selectedDate];
}
But this doesn't work. Can you please point me out, what am I doing wrong ?
I try to select the day after the day user selected. I need to select 2 days - one, that user selected and the next one. In order to do that I try to modify
didSelectItemAtIndexPathinFSCalender.mI do it like so
But this doesn't work. Can you please point me out, what am I doing wrong ?