title: How to make UIImagePickerController for camera and photo library at the same time in swift
body: <p>I use UIImagePickerController to take a photo by camera of iPhone.</p>
  
  <p>I want to show both "take a photo" and "choose a photo".</p>
  
  <p>My code</p>
  
  <pre><code>imagePicker =  UIImagePickerController()
  imagePicker.delegate = self
  imagePicker.sourceType = .camera
  //imagePicker.sourceType = .PhotoLibrary
  presentViewController(imagePicker, animated: true, completion: nil)
  </code></pre>
  
  <p>I tried to use <code>imagePicker.sourceType = .Camera</code> and <code>imagePicker.sourceType = .PhotoLibrary</code> together to do this, but it doesn't work...</p>
  
  <p>Thank you</p>