title: iphone - cached UIViewControllers?
body: <p>I have to present 4 view controllers in sequence. One is the continuation of the other. They are presented by a navigationController. </p>
  
  <p>A > B > C > D</p>
  
  <p>if I go to A, then to B, then to C and go back to B, when I return to C it appears faster the second time. I suppose all C are being cached or stored somehow. The problem with this is that, for example, C calls a UIImagePickerController the first time it enters but not the second one. Why?</p>
  
  <p>The UIImagePickerController is presented inside C's viewDidLoad, by a line like</p>
  
  <p>[self.navigationController presentModalViewController:picker animated:YES];</p>
  
  <p>but obviously, if C is being "cached" viewDidLoad will not run the second time, and this is why the picker is not being called, except for the first time. </p>
  
  <p>I like the idea of a cached VC, because it is fast as hell to go back and forward, but, where should I put the call to the picker, so it is called correctly? I thought it would be viewWillAppear, but I tried that and this method is never called.</p>
  
  <p>any ideas? thanks</p>