views:

329

answers:

1
A: 

UILabel doesn't interpret the escape sequence \n. You can insert the real character that represents the Carriage Return and/or the Line Feed. Make a char to hold your newline and then insert it.

char cr = '\n';
NSString *singleCR = [NSString stringWithCharacters:&char length:1];
[myStringForThisSection insertString:singleCR atIndex:somePlaceIWantACR];

As long as your myStringForThisSection is mutable, that should do it.

Scott Gustafson
That worked! Thanks a lot.
Dev Kanchen