2012-05-13 13 views
1

我有我的代碼串,我希望它出現這樣的:語法寫串分佈在多個線路

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

也就是說,爲了使代碼更易讀,我想宅院幾行文字。我認爲我必須在換行符後寫一些符號,但不記得哪些符號。他們是什麼?我搜索了很多,但我找不到解決方案。

回答

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

不錯!這就是我一直在尋找的!感謝您的快速回復。 爲什麼有人下調?這就是我一直在尋找的東西。 – Lukas

+0

歡迎您:) – Vitaly

+3

注意:您不需要反斜槓('\\')。 –