Answer Posted / Jitendra C Kanaujia
Yes, you can write a setter method for a retain property. In Objective-C, it would look something like this: - (void)setProperty:(id)newValue { if (newValue != self.property) { [self willChangeValueForKey:@"property"]; self.property = newValue; [self didChangeValueForKey:@"property"]; } }
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category