I have a UICollectionViewController
and this collection’s cells have a subview -let’s say A- with same frame as cell bounds.
The problem is when i tap on these cells, collectionView:didSelectItemAtIndexPath
does not get called. I also set A’s exclusiveTouch to YES but still nothing. And also when i change A’s frame to a smaller size, tapping remaining area fires collectionView:didSelectItemAtIndexPath
, no problem.
What should i actually do at that point to make this collectionView delegate get called where A’s bounds is same with cell.
I would appreciate any comments.
Check your method is it
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
or- (void)collectionView:(UICollectionView *)collectionView didDeselectItemAtIndexPath:(NSIndexPath *)indexPath
It happens sometimes.
Have you disabled user interaction property of your cell check this once.