
Hi,
I am posting some data on server using HTTP. My response is returned in the form of NSData. I want to convert NSData into NSString object. Provide me any good code example of converting NSData to NSString.
Thanks

Hi,
Following code will help you in solving the problem:
NSString* strServerResponse;
strServerResponse = [[NSString alloc]
initWithData:urlData encoding:NSASCIIStringEncoding];
NSLog(@"%@",strServerResponse);
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.