How to present a ViewController with a UIImagePickerController
<p>I'm attempting to present an <code>ImagePicker</code>, and there after the user has selected an image, present an image editing <code>ViewController</code> where the user can manipulate the image and then send the edited image back to the original <code>ViewController</code>.</p>

<blockquote>
  <p><strong>Question:</strong></p>
  
  <p>Is there a standard or best practice approach starting with an initial ViewControlle, then present an ImagePicker there after another ViewController to do the imaging editing, and then display it all back in the initial ViewController, all while making the transitions
   look seamless?</p>
  
  <p>Is the suggestion in Try 3 below a good practice method or is there a better example of how to achieve this?</p>
</blockquote>

<p><em>Try 1.</em></p>

<p>My initial thought was to present the <code>ImagePicker</code> programmatically via code below, followed by the image editing <code>ViewController</code> after the image is selected. But that approach didn’t seem right. I couldn’t seem to get the <code>ImagePicker</code> to segue properly to the <code>ViewController</code> after an image was picked. (A bunch of <em>“Unexpectedly found nil while unwrapping optional value”</em> errors were showing for the editing <code>ViewController</code>.)</p>

<pre><code>    let imagePicker = MyImagePickerController()
    imagePicker.delegate = self
    imagePicker.sourceType = .PhotoLibrary
    imagePicker.allowsEditing = false
    imagePicker.modalTransitionStyle = UIModalTransitionStyle.CoverVertical
    self.presentViewController(imagePicker, animated: true, completion: nil)
</code></pre>

<p><em>Try 2.</em></p>

<p>My second attempt was to present an image editing <code>ViewController</code> as a hidden/transparent followed immediately by the <code>ImagePicker</code> loaded , but that causes some flashes of an empty background.</p>

<p><em>Try 3.</em></p>

<p>So I came across this suggestion which is a variation of my second try using the window background to show an image of the current <code>ViewController</code> which seems possible. <a href="http://xissburg.com/presenting-multiple-modal-view-controllers-at-once/" rel="nofollow">http://xissburg.com/presenting-multiple-modal-view-controllers-at-once/</a></p>

<p><em>Try 4.</em></p>

<p>My other idea is to create a separate <code>ViewController</code> that handles just a <code>ImagePicker</code>, and then connect each <code>ViewController</code> via segues in the interface builder.</p>