The example is that I would like to generate a warning each time the property -[UIViewController navigationController] is accessed.
For the curious, the reason is that I am using a custom Navigation Controller, and would like to be warned when I (or other developers on the project) attempt to access this property.
You can create a custom getter and declare it as deprecated:
This way only when someone tries to call this getter he’ll get a warning.