UIKit: prepareForReuse should be annotated using NS_REQUIRES_SUPER on UICollectionViewCell, UITableViewCell and friends

Originator:luc.olivier.dumais.blais
Number:rdar://34289353 Date Originated:
Status:Open Resolved:
Product:iOS + SDK Product Version:
Classification:UIKit Reproducible:
 
Area:
UIKit

Summary:
According to the docs on the following classes: 
* UICollectionViewReusableView
* UITableViewCell
* UITableViewHeaderFooterView

when you override - prepareForReuse, you should make sure to call super.

It would be a nice enhancement to use the NS_REQUIRES_SUPER macro on each of the message definition for these classes. In that case, the compiler would catch cases where I forgot to read the docs 😅

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!