NSUTF8StringEncoding is an enumeration declared in NSString.h that is declared in the base structure. Have you double checked that the base structure was imported into the project? if so, try importing NSString.h and recompiling.
On the other hand, I type nsdata as follows
NSString *responseString = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding]; NSLog(@"Response:%@",responseString);
source share