views:

17

answers:

1

Think of this: A view controller's view is added as subview to another view. Now the view controller tries to unload that due to low-memory warning. I believe that is impossible because it is retained by the superview. But what if the VC really unloads the view, and then loads it back again when it is needed? Who will add is as subview to the superview? Doesn't make a lot of sense to me. So I guess the unloading of the view will not happen when the view of the view controller is still a subview of a superview...

+1  A: 

Right. The view controller won't unload its view if the view currently has a superview. That behavior mostly affects view controllers that've gone offscreen, e.g. in a navigation controller.

Noah Witherspoon