title: PrepareForSegue with UIImagePickerController
body: <p>I'm trying to use prepareForSegue with an image taken from the camera roll or camera using the UIImagePickerController. This is what I have right now and I don't know how to finish it, I hope you can help me</p>
  
  <p>ViewController.h</p>
  
  <pre><code>    @interface ViewController : UIViewController
  &lt;UIImagePickerControllerDelegate, UINavigationControllerDelegate&gt;
  
  -(IBAction)escoger:(id)sender;
  -(IBAction)camara:(id)sender;
  @property(strong,nonatomic) UIImagePickerController *imagepicker;
  @property(strong,nonatomic)IBOutlet UIImageView *image;
  </code></pre>
  
  <p>Viewcontroller.m</p>
  
  <pre><code>    -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
  
  
      if ([segue.identifier isEqualToString:@"escoger"]) {
  
          //UIImagePickerController *intro = [UIImagePickerController  ]
  
          imagepicker = [[UIImagePickerController alloc]init];
  
          imagepicker.delegate = self;
  
          imagepicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
  
  
          [self presentViewController:imagepicker animated:YES completion:nil];
  
  }}
  </code></pre>