2014-07-27 71 views
1

這是我的代碼如何添加多行註釋中HeaderDoc

/** 
* In touchesBegan: it is considered if it was succesfull click. Automatically changes on/off images 
*/ 
@interface WOC_OnOffImageButton : SKSpriteNode 

當我做WOC_OnOffImageButton在彈出的內部Description我得到In touchesBegan: it is considered if it was succesfull click. Automatically changes on/off images所有在一行中按住Alt鍵。

我想在... click. Automatically...之間換新行,因爲它比較容易閱讀。

問題
它是更多鈔票,如果是的話,該怎麼辦呢?

+0

是的,我做了,我試過\ n,
和那裏的變化,但它沒有奏效。 :-( – WebOrCode

+0

您是否嘗試在兩行之間插入一個實際的換行符?您在說什麼彈出窗口?Xcode自動填充彈出窗口不能顯示多行註釋 – duci9y

回答

2

enter image description here

是,AppleDoc支持多行註釋。以下是你如何使用它們:

/** 
* In touchesBegan: it is considered if it was succesfull click. 
* 
* Automatically changes on/off images 
*/ 

關鍵是要把星號放在新行上。您可能需要保存(Cmd+S)和/或清理(Cmd+Shift+K)您的項目才能在彈出窗口中查看結果。

+0

'Cmd + Shift + K'是**必須**,否則它有沒有辦法減少彈出描述符的行之間的空白?我只想要一行接一行,沒有太多的空白。 – WebOrCode