vendredi 6 février 2015

Swfit: Decode string to NSData to display image in ImageView


Vote count:

0




I updated XCode today. I am using XCode 6.1.1. After updating I get an error with this line.



let decodedData = NSData(base64EncodedString: jsonDict["binary"] as NSString, options: NSDataBase64DecodingOptions(rawValue: 0)!)here


The error message is: Type 'String' does not conform to protocol 'NSCopying'.


I would like to decode a String to NSData to display the image in imageView. jsonDict is a NSDictionary. What is wrong here? Can anyone help?


Thanks



asked 3 mins ago







Swfit: Decode string to NSData to display image in ImageView

Aucun commentaire:

Enregistrer un commentaire