Prepares a reusable header or footer view for reuse by the table.
- iOS 6.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
If your header or footer view is reusable—that is, it has a reuse identifier—the table view calls this method just before returning the view from its
dequeue method. Subclasses can override this method and use it to reset attributes of the view to their default values. For performance reasons, you should only reset attributes that are not related to content.
If the view does not have a reuse identifier, this method is never called.