UITableView.register(_:forHeaderFooterViewReuseIdentifier:) documentation lacks UITableViewHeaderFooterView description
Originator: | flavio | ||
Number: | rdar://35222330 | Date Originated: | 2017-10-27 |
Status: | Closed | Resolved: | 2017-11-29 |
Product: | UIKit Documentation | Product Version: | |
Classification: | Reproducible: |
The documentation for UITableView's `register(_:forHeaderFooterViewReuseIdentifier:)` method lacks any information that the given class should be a subclass of UITableViewHeaderFooterView. This is particularly worrisome because the method throws an exception without any description if a class that does not inherit from UITableViewHeaderFooterView is sent as a parameter. Ideally, it would be interesting for this method to be generic in Swift, however, understanding that support to Objective-C legacy code is required, this should be disclosed in the method's documentation.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Apple Developer Relations
Please verify here: https://developer.apple.com/documentation/uikit/uitableview/1614964-registerclass and https://developer.apple.com/documentation/uikit/uitableview/1614888-registerclass