title: Presenting UIImagePickerController from modal UIViewController
body: <p>I am trying to have it so a user can choose a photo from their album into an imageview. It seems to work fine if I'm using a push segue to that viewcontroller that has the button to perform the action, but when I change it to modal segue, nothing happens when I click the button to run the function. What is the cause of this exactly?</p>
  
  <p>Method:</p>
  
  <pre><code>- (IBAction)choosePhotoFromAlbum:(id)sender {
      UIImagePickerController *imgPicker = [[UIImagePickerController alloc] init];
      imgPicker.delegate = self;
      imgPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
  
      [self.navigationController presentViewController:imgPicker animated:YES completion:nil];
  }
  </code></pre>