Objective c XCode 5多行@param注释

Objective c XCode 5多行@param注释,objective-c,xcode,comments,Objective C,Xcode,Comments,我想知道是否可以为@param创建多行注释。我的意思是: /** * Some description * * @param test Some test parameter this should start on a new line this as well */ 上面的代码将所有三行放在一起。 现在我知道用新行开始某件事的唯一方法是在这样做之前有一个空行: /** * Some description * * @

我想知道是否可以为@param创建多行注释。我的意思是:

/**
 * Some description
 *
 * @param test Some test parameter
               this should start on a new line
               this as well
 */
上面的代码将所有三行放在一起。 现在我知道用新行开始某件事的唯一方法是在这样做之前有一个空行:

/**
 * Some description
 *
 * @param test Some test parameter

               this should start on a new line

               this as well
 */

不幸的是,上面的代码认为最后两行属于description,而不是@param。有没有办法让xcode知道这个描述仍然适用于@param?

你说的
让xcode知道是什么意思?Xcode只解析文本文档方法的前几行连续行。因为@param是在中断后开始的,所以Xcode不会为它生成headerdoc。@CodaFi Xcode解析整个代码块,并且“param”成功地显示在快速帮助中。事实上,使用新的注释语法可以做很多事情。