Instance Method

collectionView:didEndDisplayingItem:forRepresentedObjectAtIndexPath:

Notifies the delegate that the specified item was removed from the collection view.

Declaration

- (void)collectionView:(NSCollectionView *)collectionView didEndDisplayingItem:(NSCollectionViewItem *)item forRepresentedObjectAtIndexPath:(NSIndexPath *)indexPath;

Parameters

collectionView

The collection view that removed the item.

item

The item that was removed.

indexPath

The index path of the item.

Discussion

The collection view calls this method after removing an item from its content. You can use this method to track the removal of items and perform related tasks.

See Also

Tracking the Addition and Removal of Items

- collectionView:willDisplayItem:forRepresentedObjectAtIndexPath:

Notifies the delegate that the specified item is about to be displayed by the collection view.

- collectionView:willDisplaySupplementaryView:forElementKind:atIndexPath:

Notifies the delegate that the specified supplementary view is about to be displayed by the collection view.

- collectionView:didEndDisplayingSupplementaryView:forElementOfKind:atIndexPath:

Notifies the delegate that the specified supplementary view was removed from the collection view.