用于写入分布在多行中的字符串的语法



我的代码中有一个字符串,我希望它看起来像这样:

NSString *string = @"The string
                          other part of the string is bellow
                          the last part is in the third line";

也就是说,为了使代码更具可读性,我想将文本放在几行上。我想我必须在换行后写一些符号,但不记得是哪些符号。它们是什么?我已经搜索了很多,但我找不到解决方案。

NSString *string = @"The string"
                      "other part of the string is bellow"
                      "the last part is in the third line";

最新更新