iVar property, access via self?

If you have a defined property for an ivar, you should use it rather than accessing the ivar directly. That allows subclasses to override the setter/getter and do something different to just fetching the value from the ivar.

The only exception is in init methods and dealloc.

Leave a Comment