I need to display some data from a JSON Webservice in my iOS App inside a UITextView which is multiline however when I use the String on the textview the new lines do not work.
Here is the code I am using:
// Data Value from JSON = testing the data value \r\n Another \n liine maybe?
NSString *responseDataString = [dictRequestorDetails objectForKey:@"data"];
txtWorkflowDetails.text = responseDataString;
When I execute this code the UITextField shows
testing the data value \r\n Another \n liine maybe?
However If I type in the string like
// Data Value from JSON = testing the data value \r\n Another \n liine maybe?
NSString *responseDataString = [dictRequestorDetails objectForKey:@"data"];
txtWorkflowDetails.text = @"testing the data value \r\n Another \n liine maybe?";
The line breaks then work in the TextView