invalidateItems(at:)
Adds the cells at the specified index paths to the list of invalid items.
Declaration
func invalidateItems(at indexPaths: [IndexPath])Parameters
- indexPaths:
An array of Nsindexpath objects. Each index path represents a cell whose layout needs to be recomputed.
Discussion
Call this method to identify the specific cells of your layout that require updates. The cells you specify are added to the array in the invalidatedItemIndexPaths property.