paulmelnikow / AFNetworking-Synchronous

Synchronous requests for AFNetworking 1.x, 2.x, and 3.x
MIT License
162 stars 34 forks source link

Cannot put NSError in syncPOST #6

Closed jackyshek closed 9 years ago

jackyshek commented 9 years ago

I have used the syncPOST to get the json with using swift. However, synPost need the NSErrorPointer not NSError.

Here is the Code:

var error = NSErrorPointer() var error_mes:NSError // failed let josn: AnyObject! = manager.syncPOST(getCol_link, parameters: nil, operation: nil, error: error)

Error: Cannot invoke 'syncPOST' with an argument list of type '(String, parameters: nil, operation: nil, error: NSError)'

paulmelnikow commented 9 years ago

Hmmm, I'm not sure the correct fix, but don't think this is a problem with this library. Can you try posting on StackOverflow?