NSString: newline escape in plist

前端 未结 5 621
终归单人心
终归单人心 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:08

    This is how I do loading my plist in Swift 2.0:

    plist:

    
    
    
    
        STRING_TEXT
        This string contains an emoji and a double underscore

提交回复
热议问题