UICollectionView Zmień tło komórki, gdy dotknij
Czy istnieje możliwość zmiany koloru tłaUICollectionView
tylko wtedy, gdy element jest stuknięty. Próbowałem
-(void) collectionView:(UICollectionView *)collectionView didHighlightItemAtIndexPath:(NSIndexPath *)indexPath{
//change color when tapped
}
-(void)collectionView:(UICollectionView *)collectionView didUnhighlightItemAtIndexPath:(NSIndexPath *)indexPath{
//change back on touch up
}
Ale wynik jest taki, że widzę zmianę tylko wtedy, gdy trzymam palec na dłużej. Czy jest coś podobnego jak wUITableViewCell
metodawillSelectItemAtIndexPath:
?