PDA

View Full Version : Removing Objects from Superview




xcodeNewbie
Jul 18, 2011, 01:35 PM
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?



admanimal
Jul 18, 2011, 01:56 PM
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?

You should assume that if you remove a view from its superview and no other object is retaining it, it will be dealloc'ed.