UIButton image for normal state in collectionview cell repeats itself every four cells
问题 I'm trying to set an image for a button's normal state which is located in a collectionView cell. When the button is pressed the image changes. The problem is every four cells it repeats the same image as the original cell when the button is pressed. Is there a way to not have it repeat itself and when the button is pressed its only for that individual cell? Here is the code: class FavoritesCell: UICollectionViewCell { var isFavorite: Bool = false @IBOutlet weak var favoritesButton: UIButton!