Hi, here's a problem with memory management issue.
Say i have a view A, it has a pointer that points to its subview B. I use @property(nonatomic, retain)
refer to the view B.
Now in subview B, i need a pointer to point back to its superview A. So i use another @property(nonatomic, retain)
refer to its superview A.
Here's my concern, i've read an article Hold Me, Use Me, Free Me about retain and release stuff in objective c. It mentioned "retain cycles". So it says that a subview does not need to retain its superview, actually it would be redundant if it does so. Is that means in my example, the subview B only need to use @property(nonatomic)
refer to its superview A? Thx!
BTW, if I didn't write retain in the @property for view A, do i need to [viewA release]
in the dealloc method?