title: how to get indexPath for cell which is located in the center of UICollectionView
body: <p>How can i find <code>indexPath</code> for <code>cell</code> in the middle of <code>UICollectionView</code>?</p>
  
  <p>I have horizontal scrolling and only one  big <code>cell</code> is visible (partially two other <code>cell</code>s on the sides are visible as well).
  I need to delete <code>cell</code> located in the center (means  - current <code>cell</code>) without touching it.</p>
  
  <p>Only pressing "Trash" button and confirm Delete. But now it delete only first <code>cell</code>s.</p>
  
  <pre><code>- (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex {
      if (buttonIndex == actionSheet.destructiveButtonIndex) { 
          initialPinchPoint = ????????
  
          self.tappedCellPath = [self.collectionView indexPathForItemAtPoint:initialPinchPoint];
  
          Technique *technique = [arrayOfTechnique objectAtIndex:self.tappedCellPath.row];
  
          [self deleteData:[NSString stringWithFormat:@"DELETE FROM TECHNIQUES WHERE TECHNIQUENAME IS '%s'",[technique.techniquename UTF8String]]];
  
          [arrayOfTechnique removeObjectAtIndex:self.tappedCellPath.row];
  
          //[arrayOfTechnique removeObjectAtIndex:[custom_layout ]];
          [self removeImage:technique.techniquename];
  
          [self.collectionView performBatchUpdates:^{
              [self.collectionView deleteItemsAtIndexPaths:[NSArrayarrayWithObject:self.tappedCellPath]];
           } completion:nil];
  
           [self checkArrayCount];
      }
  }
  </code></pre>