Registers a class for use in creating supplementary views for the collection view.
- iOS 6.0+
- tvOS 9.0+
The class to use for the supplementary view.
The kind of supplementary view to create. This value is defined by the layout object. This parameter must not be
The reuse identifier to associate with the specified class. This parameter must not be
niland must not be an empty string.
Prior to calling the
dequeue method of the collection view, you must use this method or the
register method to tell the collection view how to create a supplementary view of the given type. If a view of the specified type is not currently in a reuse queue, the collection view uses the provided information to create a view object automatically.
If you previously registered a class or nib file with the same element kind and reuse identifier, the class you specify in the
view parameter replaces the old entry. You may specify
view if you want to unregister the class from the specified element kind and reuse identifier.