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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -