Since you assign the response to the returnData
instance returnData
, convert it to a string for starters, just see what you get, the parsing can be done either using NSXMLParser
or with some JSON library depending on the response format.
Here you can convert the response to a string:
NSString *responseBody = [[NSString alloc] initWithData:returnData encoding:NSUTF8StringEncoding];
source share