I use the code below to retrieve a text data from the server in requestDidFinished method:
NSString *responseString = [request responseString];
NSDictionary *responseDict = [responseString JSONValue];
if (responseDict != Nil) {
self.dataArray = [responseDict allValues];
NSLog(@"data Array: %@",self.dataArray);
}
Log:
data Array: (
"Welcome To Let’s Drive"
)
Now i need to know to to put the log message in textView and how to let the word “Let’s” appear properly not "Let’s"
You should run the string through an HTML character decoder to get rid of the HTML entities.
Check out this question for more details on how to do it:
HTML character decoding in Objective-C / Cocoa Touch