Is property getter called even if I access property by name?
Let's say that I declare property in following way:
@property(nonatomic, strong, getter = isWorking) BOOL working;
Then instead of having the property to be synthesized I write the getter
myself (and add some custom logic to it).
What will happen if I access the property in following way:
BOOL work = self.working;
Is the getter (and my custom logic there) still called or is it called
only when I access the property using getter explicitly (BOOL work =
self.isWorking;) ?
No comments:
Post a Comment