title: FSCalendar - I want to select date on longPressGesture
body: <p>How to select date using LongpressGesture using FSCalendar??</p>
  
  <p>I am using <a href="https://github.com/WenchaoD/FSCalendar" rel="nofollow noreferrer">WenchaoD/FSCalendar</a> third party calendar from github.</p>
  
  <pre><code>- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
  {
      NSDate *selectedDate = [self.calculator dateForIndexPath:indexPath];
      FSCalendarMonthPosition monthPosition = [self.calculator monthPositionForIndexPath:indexPath];
      FSCalendarCell *cell;
      if (monthPosition == FSCalendarMonthPositionCurrent) {
          cell = (FSCalendarCell *)[collectionView cellForItemAtIndexPath:indexPath];
      } else {
          cell = [self cellForDate:selectedDate atMonthPosition:FSCalendarMonthPositionCurrent];
          NSIndexPath *indexPath = [collectionView indexPathForCell:cell];
          if (indexPath) {
              [collectionView selectItemAtIndexPath:indexPath animated:NO scrollPosition:UICollectionViewScrollPositionNone];
          }
      }
      if (![_selectedDates containsObject:selectedDate]) {
          cell.selected = YES;
          [cell performSelecting];
      }
      [self enqueueSelectedDate:selectedDate];
      [self.delegateProxy calendar:self didSelectDate:selectedDate atMonthPosition:monthPosition];
      [self selectCounterpartDate:selectedDate];
  }
  </code></pre>