There is probably a really simple answer for this, but I can't seem to put my finger on it.
I am getting the contents of a web URL using (See Below)
NSData *data = [NSData dataWithContentsOfURL:webURL];
What I want to do is display this NSData in a readable form, not the hexadecimal representation.
This is also another way, bypassing the use of NSData altogether:
NSError *error = nil;
NSString *string = [NSString stringWithContentsOfURL:webURL encoding:NSUTF8StringEncoding error:&error];
NSString* newStr = [[NSString alloc] initWithData:data
encoding:NSUTF8StringEncoding];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With