associate object tutorial "The tutorial link gave me a clear concept of object-c runtime associate object"
After reading the example code below, I have a small question.
- (void)setAssociatedObject:(id)object
{
objc_setAssociatedObject(self, @selector(associatedObject), object,OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
- (id)associatedObject
{
return objc_getAssociatedObject(self, @selector(associatedObject));
}
If your using ARC in iOS, do we need to add memory handling by ourselves?
Thanks in advance