When I use assign
when declaring a synthesized propery, does ARC automatically still create a matching ivar to it? My property is as follows
@property (nonatomic, assign) NSString *text:
And
- (NSString *)text {
return self.label.text; // label is a UILabel
}
- (void)setText:(NSString *)text {
self.label.text = text;
}
I never have any use for the automatically generated _text
ivar; does the compiler still create this ivar when I omit @synthesize text = _text
or does the unused ivar just persist in the memory unused?