Property vs. instance variable
Properties are just setters and getters for ivars and should (almost) always be used instead of direct access. @interface APerson : NSObject { // NSString *_name; // necessary for legacy runtime } @property(readwrite) NSString *name; @end @implementation APerson @synthesize name; // use name = _name for legacy runtime @end @synthesize creates in this case those … Read more