I tried to use POST upload/media API in my app but it looks like I’m stuck with this `-[NSConcreteData _fastCharacterContents]:
error and I don’t know what to do to fix it. Here’s the code I use :
let uploadMediaUrlString = "https://upload.twitter.com/1.1/media/upload.json" let imgData = UIImagePNGRepresentation(self.albumImg.image) let params = ["media":imgData] var mediaError : NSError? let mediaRequest = Twitter.sharedInstance().APIClient.URLRequestWithMethod("POST", URL: uploadMediaUrlString, parameters: params as [NSObject : AnyObject], error: &mediaError)
The error happen for params where I can’t use it as a <String,NSData> dictionary I don’t know why.
Thanks in advance for your response