これは私が持っているものです
UICollectionViewController - UICollectionViewCell - UIScrollView - ImageView
イメージビューのタップを処理しようとしていますが、呼び出されません。
UITapGestureRecognizer *tap =[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)];
[cell.imageView addGestureRecognizer:tap];
- (void)handleTap:(UITapGestureRecognizer *)recognizer {
NSLog(@"Tap");
NSIndexPath *indexPath = [self.collectionView indexPathForItemAtPoint:[recognizer locationInView:self.collectionView]];
}