XCode 5多行@param评论

时间:2014-04-30 23:56:02

标签: 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 test Some test parameter

               this should start on a new line

               this as well
 */

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

0 个答案:

没有答案