Graphics Programs Reference
In-Depth Information
Removing an object from a dictionary relinquishes ownership of the object, so flushing
the cache causes all of the images to lose an owner. Images that aren't being used by other
objects are destroyed, and when they are needed again, they will be reloaded from the
filesystem. If an image is currently displayed in the
DetailViewController
's
im-
ageView
, then it will not be destroyed since it is owned by the
imageView
. When the
DetailViewController
's
imageView
loses ownership of that image (either be-
cause the
DetailViewController
was popped off the stack or a new image was
taken), then it is destroyed. It will be reloaded later if needed.