Instance Method

finalizeCollectionViewUpdates

Performs needed steps after items are inserted, deleted, or moved within a collection view.

Declaration

- (void)finalizeCollectionViewUpdates;

Discussion

When items are inserted, deleted, or moved, the collection view calls this method as a final step before performing the associated animations. This method is called within the animation block used to configure the insertion, deletion, and move animations, so you can use this method to configure additional animations that you want to run at the same time. You can also use this method to perform any cleanup steps to account for the changes.

See Also

Responding to Collection View Updates

- prepareForCollectionViewUpdates:

Performs needed tasks before items are inserted, deleted, or moved within the collection view.

- indexPathsToInsertForSupplementaryViewOfKind:

Returns the index paths for any supplementary views that the layout object wants to add to the collection view.

- indexPathsToInsertForDecorationViewOfKind:

Returns the index paths for any decoration views that the layout object wants to add to the collection view.

- initialLayoutAttributesForAppearingItemAtIndexPath:

Returns the starting layout information for an item being inserted into the collection view.

- initialLayoutAttributesForAppearingSupplementaryElementOfKind:atIndexPath:

Returns the starting layout information for a supplementary view being added to the collection view.

- initialLayoutAttributesForAppearingDecorationElementOfKind:atIndexPath:

Returns the starting layout information for a decoration view being added to the collection view.

- indexPathsToDeleteForSupplementaryViewOfKind:

Returns the index paths for any supplementary views that the layout object wants to remove from the collection view.

- indexPathsToDeleteForDecorationViewOfKind:

Returns index paths for any decoration views that the layout object wants to remove from the collection view.

- finalLayoutAttributesForDisappearingItemAtIndexPath:

Returns the ending layout information for an item being removed from the collection view.

- finalLayoutAttributesForDisappearingSupplementaryElementOfKind:atIndexPath:

Returns the ending layout information for a supplementary view being removed from the collection view.

- finalLayoutAttributesForDisappearingDecorationElementOfKind:atIndexPath:

Returns the ending layout information for a decoration view being removed from the collection view.