title: Call performSegueWithIdentifier from didFinishPickingMediaWithInfo
body: <p>I want to call programmatically a <code>segue</code> from the <code>imagePickerController:didFinishPickingMediaWithInfo:</code> method, but it doesn't work. It doesn't crash, but doesn't work. It just does nothing. The <code>prepareForSegue</code> method is called correctly.</p>
  
  <pre><code>- (void) imagePickerController:(UIImagePickerController *)picker 
           didFinishPickingMediaWithInfo:(NSDictionary *)info {
  
     rutaFoto = [info valueForKey:UIImagePickerControllerMediaURL];
     [self dismissModalViewControllerAnimated:YES];
     [self performSegueWithIdentifier:@"aGaleria" sender:self];
  }
  </code></pre>
  
  <p>The <code>segue</code> links 2 <code>UIViewControllers</code>.
  And if I call the segue with <code>performSegueWithIdentifier</code> from other place (e.g. from a push <code>UIButton</code> method), it works.
  Any ideas?</p>