title: iPhone SDK - How to display a photo taken with the camera inside a UINavigationController?
body: <p>This is my code so far:</p>
  
  <pre><code>/* class: myViewController
  @interface myViewController: UIViewController
         &lt;UIImagePickerControllerDelegate, UINavigationControllerDelegate&gt;
  */
  - (IBAction) getPicture {
      UIImagePickerController * picker = [[UIImagePickerController alloc] init];
         picker.delegate = self;
         picker.sourceType = UIImagePickerControllerSourceTypeCamera;
         [self presentModalViewController:picker animated:YES];
  }
  
  - (void) imagePickerController:(UIImagePickerController *)thePicker 
                      didFinishPickingMediaWithInfo:(NSDictionary *)imageInfo
  {
      [[thePicker parentViewController] dismissModalViewControllerAnimated:YES];
         UIImage *img = [imageInfo
                             objectForKey:@"UIImagePickerControllerOriginalImage"];
      self.myImageView.image = img;
  }
  </code></pre>
  
  <p>So basically I'm trying to get a photo from the iPhone camera and display it in a UIImageView. This works perfectly fine as long the class myViewController is displayed as a standalone view. If I'm putting the View inside a UINavigationController the UIImageView won't display the image after taking one with the camera. But if I choose a picture from the library everything is fine again.</p>
  
  <p>So why does the UIImageView won't display a image taken with the camera inside a UINavigationController? </p>