NSString: newline escape in plist

前端 未结 5 623
终归单人心
终归单人心 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 22:04

    Edit your plist using a text editor instead of Xcode's plist editor. Then you simply put line breaks in your strings directly:

    foo
    bar
    

提交回复
热议问题