Instance Method

invalidateItemsAtIndexPaths:

Adds the cells at the specified index paths to the list of invalid items.

Declaration

- (void)invalidateItemsAtIndexPaths:(NSArray<NSIndexPath *> *)indexPaths;

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.

See Also

Invalidating Specific Items

- invalidateSupplementaryElementsOfKind:atIndexPaths:

Adds the supplementary views at the specified index paths to the list of invalid items.

- invalidateDecorationElementsOfKind:atIndexPaths:

Adds the decoration views at the specified index paths to the list of invalid items.

invalidatedItemIndexPaths

An array of index paths representing the cells that were invalidated.

invalidatedSupplementaryIndexPaths

A dictionary that identifies the supplementary views that were invalidated.

invalidatedDecorationIndexPaths

A dictionary that identifies the decoration views that were invalidated.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software