ios - UIButton released from memory? -
i create couple of uibuttons (with selectors) in method (throughout life cycle of app) , stick them nsmutablearray. created buttons not properties array is.
- if delete button array, button automatically released memory?
- if answer above no, have released memory?
the button indeed, eventually, released memory no 1 retaining it. retain count decremented regardless, if no 1 else retaining it, released memory.
this confusing mechanism - keep in mind uibuttons views , part of view hierarchy retains them. if they're visible, must removed superview in order released.
Comments
Post a Comment