Converting NSData to NSString in iOS | iOS Programmer Guide

We can convert the NSData to NSString with the help of init method 'initWithData' in NSString. An example objective-c code snippet is given below to convert NSData into NSString

NSString* myString;
myString = [[NSString alloc] initWithData:nsdata encoding:NSASCIIStringEncoding];