Inserts new items at the specified index paths.
- iOS 6.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
An array of
NSIndexobjects, each of which contains a section index and item index at which to insert a new cell. This parameter must not be
Call this method to insert one or more new items into the collection view. You might do this when your data source object receives data for new items or in response to user interactions with the collection view. The collection view gets the layout information for the new cells as part of calling this method. And if the layout information indicates that the cells should appear onscreen, the collection view asks your data source to provide the appropriate views, animating them into position as needed.
You can also call this method from a block passed to the
perform method when you want to animate multiple separate changes into place at the same time. See the description of that method for more information.