I found that when I was reading strings in from a .plist
file, occurrences of "\n"
were parsed as "\\n"
. The solution for me was to replace occurrences of "\\n"
with "\n"
. For example, given an instance of NSString
named myString
read in from my .plist
file, I had to call...
myString = [myString stringByReplacingOccurrencesOfString:@"\\n" withString:@"\n"];
... before assigning it to my UILabel
instance...
myLabel.text = myString;