UIViewController lifecycle methods should make use of `objc_requires_super`

Originator:Benjamin.Encz
Number:rdar://21932190 Date Originated:7/21/2015
Status:Open Resolved:
Product:iOS Product Version:
Classification:Enhancement Reproducible:
 
UIViewController provides multiple methods that require overriding methods to call super. Objective-C provides the `objc_requires_super` attribute to inform the compiler about this requirement.

UIViewController should use the `objc_requires_super` for methods such as `viewWillAppear`, `viewDidAppear`, etc.

Steps to reproduce:

1. Create a new UIViewController subclass
2. Override `viewWillAppear` without calling `super` implementation

Expected results:

1. Compiler should emit a warning because `super` implementation is not called

Actual results:

1. Compiler does not emit any warning

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!