I have implemented a UICollectionView
in my app. My problem is that I need to select (like if the user tapped on it) a cell programmatically
.
The method:
- (void)selectItemAtIndexPath:(NSIndexPath *)indexPath
animated:(BOOL)animated
scrollPosition:(UICollectionViewScrollPosition)scrollPosition
That is part of the UICollectionView
class is not what i need to call, since this method does not call:
- (void)collectionView:(UICollectionView *)collectionView
didSelectItemAtIndexPath:(NSIndexPath *)indexPath
It just sets the selected
property of the cell to YES
;