-[UICollectionReusableView prepareForReuse] needs NS_REQUIRES_SUPER

Originator:lap.felix
Number:rdar://39249529 Date Originated:06-Apr-2018 05:37 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:11.3
Classification:Security Reproducible:Always
 
Summary:
The documentation says “Subclassers must call super.” so the NS_REQUIRES_SUPER macro should probably be there.

Steps to Reproduce:
- Subclass UICollectionReusableView
- Override -(void)prepareForReuse
- Don’t call super
- Observe weird UICollectionView behaviours

Expected Results:
The compiler should give a warning

Actual Results:
The compiler gives no warning

Version:
11.3

Notes:

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!