Povilas
Povilas

Reputation: 565

how to know if UICollectionViewCell is about to be dequed?

How can I get informed when UICollectionViewCell is about to be scroll out from superview (will be queued)? I need to resignFirstResponder from that cell before the cell is queued.

Upvotes: 0

Views: 1114

Answers (1)

Rui Peres
Rui Peres

Reputation: 25917

On the delegation method of UICollectionViewDelegate:

- (void)collectionView:(UICollectionView *)collectionView didEndDisplayingCell:(UICollectionViewCell *)cell forItemAtIndexPath:(NSIndexPath *)indexPath

Upvotes: 2

Related Questions