title: PHAsset to UIImage
body: <p>I'm attempting to create a UIImage (like a thumbnail or something) from a PHAsset so that I can pass it into something that takes a UIImage. I've tried adapting solutions I found on SO (since they all just directly pass it into say a tableview or something), but I have no success (likely because I'm not doing it right).</p>
  
  <pre><code>func getAssetThumbnail(asset: PHAsset) -&gt; UIImage {
      var retimage = UIImage()
      println(retimage)
      let manager = PHImageManager.defaultManager()
      manager.requestImageForAsset(asset, targetSize: CGSize(width: 100.0, height: 100.0), contentMode: .AspectFit, options: nil, resultHandler: {(result, info)-&gt;Void in
              retimage = result
      })
      println(retimage)
      return retimage
  }
  </code></pre>
  
  <p>The printlns are telling me that the manager.request line isn't doing anything right now. How do I get it to give me the asset as a UIImage.</p>
  
  <p>Thanks.</p>