title: Swift Convert string Base64 to UIImage
body: <p>I'm trying to convert base 64 encoded string to <code>UIImage</code> with the following code:</p>
  
  <pre><code>let decodedData = NSData(base64EncodedString: base64String!, options: NSDataBase64DecodingOptions(rawValue: 0) )
  
  print(decodedData) //I get data here (It is not nil)
  
  var decodedimage = UIImage(data: decodedData!) //return nil
  </code></pre>
  
  <p>The <code>decodedData</code> seems fine, Why do I get <code>nil</code> when converting to <code>UIImage</code>?</p>