Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSString: newline escape in plist

I'm writing a property list to be in the resources bundle of my application. An NSString object in the plist needs to have line-breaks in it. I tried \n, but that doesn't work. What do I do to have newlines in my string in the plist?

Thanks.

like image 656
Jonathan Sterling Avatar asked Jan 10 '10 00:01

Jonathan Sterling


1 Answers

If you're editing the plist in Xcode's inbuild plist editor, you can press option-return to enter a line break within a string value.

like image 76
Dave Addey Avatar answered Sep 20 '22 08:09

Dave Addey