UIImagePickerController causes viewDidLoad - where to store image data?
<p>I found that <code>UIImagePickerController</code> can unload your parent view, especially if you bring up the camera, resulting in viewDidLoad being called again. I understand that this happens due to low memory. But I was storing the <code>UIImage*</code> from <code> imagePickerController:didFinishPickingMediaWithInfo</code> in the view controller. This data is lost after a reload. (The <code>self</code> pointer for the view controller has changed, and the <code>UIImage*</code> is null.) So is it a bad idea to store such variables in the view controller? Where should they be stored - in a global (singleton) object?</p>

<p>Thanks</p>
