Objective-C set accessor -
when declare property in objective-c, add synthesize clause accessors
@interface storemanager () @property (nonatomic, copy) nsstring *writestorestimer; @implementation storemanager @synthesize writestorestimer
i use following syntax set value property
[self setwritestoresmanager:@"data"];
is above statement same self.writestorestimer = @"data" ? call set-accessor
yes self. , set uses accessors time dont when within same class , use pointers name
Comments
Post a Comment