In the examples given, instance variables such as NSString *label are included both within the curly brackets and as a @property.
But when I do the same thing in Employee.h with a NSMutableArray, i.e.
@interface Employee : Person
@property NSMutableArray *assets;
@property int employeeID;
I can build the file, but receive a warning: Autosynthesised property ‘assets’ will use synthesised variable ‘_assets’ , not existing instance variable ‘assets’.
If I delete the @property line, everything works as expect. What’s going on here – why does is accept NSString repeated as a @property but not NSMutableArray?
What have I misunderstood?