title: Load image form Gallery in swift from path given by UIImagePickerViewController?
body: <p>I am saving path in Database return by UIImagepicker from Gallery</p>
  
  <pre><code> let imageURL = info[UIImagePickerControllerReferenceURL] as! NSURL
              let imageName = imageURL.lastPathComponent
              let documentDirectory = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true).first! as String
  
              //let localPath = documentDirectory.stringByAppendingPathComponent(imageName!)
  
              let imagePath = String("\(documentDirectory)/\(imageName!)")
  </code></pre>
  
  <p>where path look like</p>
  
  <blockquote>
    <p>/Users/kshitijghule/Library/Developer/CoreSimulator/Devices/3AC7B500-E980-4A00-BC32-34FA3C7DDE8A/data/Containers/Data/Application/838FB5A1-4448-46C9-8BEC-2E939668B97D/Documents/asset.JPG</p>
  </blockquote>
  
  <p>Now i want load this image from this path. </p>
  
  <pre><code>i used this code 
  
  
     let url = NSURL(string:"/Users/kshitijghule/Library/Developer/CoreSimulator/Devices/3AC7B500-E980-4A00-BC32-34FA3C7DDE8A/data/Containers/Data/Application/838FB5A1-4448-46C9-8BEC-2E939668B97D/Documents/asset.JPG")!//path from database but mention static 
       let imageData = NSData(contentsOfURL:url)!   
     cell?.petImageView.image = UIImage(data: imageData)
  </code></pre>
  
  <p>But i am getting crash at line</p>
  
  <pre><code>let imageData = NSData(contentsOfURL:url)! 
  </code></pre>
  
  <p>How to fix this issue? It will work on device ?</p>