In this video tutorial, we’re going to take a look at how you can delete cells from the collection view.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3819-beginning-collection-views/lessons/7
In this video tutorial, we’re going to take a look at how you can delete cells from the collection view.
Hi, Michael.
there is a bug here .
when you press the edit button, the collectionView becomes into editing mode, and the checked imageView on the visible cell display, that’s right, but if you scroll down , you will find some invisible cell before scrolling doesn’t have the checked imageView displayed. the same thing happens when you toggle back to normal mode(non-editing mode).
Hi Michael,
The Challenge PDF solution contains NSIndexPath - looks like it wasn’t updated fully.
Also - the CollectionView.indexPathsFor… methods return [IndexPath] so no need to cast IMHO.
Great tutorial, thanks!
Hi Michael,
I think function prepareForReuse in ParkCell.swift should be this.
override func prepareForReuse() {
parkImageView.image = nil
captionLabel.text = “”
isSelected = false
}
Great tutorial, thanks!