1

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

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

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

4

1 回答 1

2
NSString *string = @"The string"
                      "other part of the string is bellow"
                      "the last part is in the third line";
于 2012-05-13T18:09:44.450 回答