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.

  1. if delete button array, button automatically released memory?
  2. 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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -