Open bingoogolapple opened 8 years ago
let base64Str = "data:image/png;base64,\(imageStr)".stringByReplacingOccurrencesOfString("\n", withString: "") let url = NSURL(string: base64Str) let imageData = NSData(contentsOfURL: url!)! let image = UIImage(data: imageData)