Inserts new sections at the specified indexes.
- iOS 6.0+
- tvOS 9.0+
An index set containing the indexes of the sections you want to insert. This parameter must not be
Use this method to insert one or more sections into the collection view. This method adds the sections, and it is up to your data source to report the number of items in each section when asked for the information. The collection view then uses that information to get updated layout attributes for the newly inserted sections and items. If the insertions cause a change in the collection view’s visible content, those changes are animated into place.
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.