Removing Objects from Superview

Discussion in 'iOS Programming' started by xcodeNewbie, Jul 18, 2011.

  1. macrumors member

    Joined:
    Jul 1, 2011
    #1
    If I remove an object from its super view, and no other class owns that object, does it get immediately deleted or does it still float around in memory?
     
  2. macrumors 68040

    Joined:
    Apr 22, 2005
    #2
    You should assume that if you remove a view from its superview and no other object is retaining it, it will be dealloc'ed.
     

Share This Page