Animate cell when pressed using Swift 3
问题 My problem is really simple. I would like to animate a cell within a collectionView. Indeed, I would like to show a grey background behind the cell and scale down the image inside. It would be (almost) the same effect than Pinterest: I used to code that animation on buttons, but I never did that on a cell. How can link a cell to a touchUpInside or TouchDown action for example ? 回答1: If you want to start animation when you touch on the cell, you can implement didHighlightItemAt . You probably