I need to release uiimage/view/subviews when I want, and have a few questions regarding proper practice of releasing them.
[imageView removeFromSuperview] would release the imageView and imageView.image?
view = nil; would release its subviews/and associated uiimages recursively? if not, should I implement a recursive function to release a view's subviews?
Thank you
Edit.
I looked at UIView's library reference
addSubview --
This method retains view and sets its next responder to the receiver, which is its new superview.
removeFromSuperview --
If the receiver’s superview is not nil, the superview releases the receiver. If you plan to reuse a view, be sure to retain it before calling this method and release it again later as appropriate.
still not sure [imageView release] releases uiImage associated with it, and would I still need recursive releasing of subviews. ie a view's getting dealloced would automatically guarantee it's subviews release?