Z
Z
zzasdee2015-08-20 18:02:25
Objective-C
zzasdee, 2015-08-20 18:02:25

How to override didSelectRowAtIndexPath in UICollectionViewCell inside UITableViewCell?

There is such structure:
b99d68f1b95146ebafbce7eca238d0bf.png
All delegates are anchored, all methods fulfill perfectly. Everything except

- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath;

AT
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath

I added UITapGestureRecognizerto the cell, but I'm wondering if it's possible to intercept the standard event? On foreign forums I read that no.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
s0L, 2015-08-21
@s0L

What prevents you from calling the desired cell method yourself from didSelectItemAtIndexPath?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question