как получить indexPath для ячейки, которая находится в центре UICollectionView

Как я могу найтиindexPath заcell в центреUICollectionView?

У меня горизонтальная прокрутка и только один большойcell виден (частично два другихcellс боков тоже видны). Мне нужно удалитьcell находится в центре (значит - токcellне касаясь этого.

Только нажав кнопку «Корзина» и подтвердите удаление. Но теперь он удаляет только первыйcells.

- (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];
    }
}

Ответы на вопрос(9)

Ваш ответ на вопрос