title: UICollectionView indexPathForItemAtPoint returning nil
body: <p>I have a view that has four collection views. I am trying to detect the cell on which I receive the long press gesture. I have gesture recognizer installed and it's working fine for the collection view at the top(physically not hierarchically) of the view but not working for the rest of them.</p>
  
  <p>Try following code:</p>
  
  <pre><code>CGPoint p = [gestureRecognizer locationInView:self.view];
  
  NSIndexPath *indexPath;
  if ([self.TopCollectionView indexPathForItemAtPoint:p]){
      indexPath = [self.TopCollectionView indexPathForItemAtPoint:p];
      _lilCell = (ArticlePanelViewCell *)[self.TopCollectionView cellForItemAtIndexPath:indexPath];
      NSLog(@"top");
  }else if([self.MiddleCollectionView indexPathForItemAtPoint:p]){
      indexPath = [self.MiddleCollectionView indexPathForItemAtPoint:p];
      _lilCell = (ArticlePanelViewCell *)[self.MiddleCollectionView cellForItemAtIndexPath:indexPath];
      NSLog(@"middle");
  }else if([self.BottomCollectionView indexPathForItemAtPoint:p]){
      indexPath = [self.BottomCollectionView indexPathForItemAtPoint:p];
      _lilCell = (ArticlePanelViewCell *)[self.BottomCollectionView cellForItemAtIndexPath:indexPath];
      NSLog(@"bottom");
  }else if([self.ExtraCollectionView indexPathForItemAtPoint:p]){
      indexPath = [self.ExtraCollectionView indexPathForItemAtPoint:p];
      _lilCell = (ArticlePanelViewCell *)[self.ExtraCollectionView cellForItemAtIndexPath:indexPath];
      NSLog(@"bottom");
  }else {
      NSLog(@"Long press detected outside the content panel area");
  }
  </code></pre>
  
  <p>It's working for the TopCollectionView and not the rest of them. The point p does show the correct co-ordinates. The gesture recognizer callback is in the viewcontroller containing 4 collection views as it's subviews.</p>