NSString: newline escape in plist

前端 未结 5 618
终归单人心
终归单人心 2020-12-04 21:23

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

5条回答
  •  天命终不由人
    2020-12-04 21:49

    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.

提交回复
热议问题