我创建了一个以块作为参数的方法。这个块需要一些参数,所以我想缩进文档,就像Apple在它们具有类似格式的方法中所做的那样.

代码中的一个简单示例是:
/** Loads a project from web service.
@param securityKey The security key.
@param block The block to execute after the web service returned all data. The block takes five arguments:
@param data The data.
@param fields Some fields.
*/
- (void)loadProjectWithSecurityKey:(NSString *)securityKey andCompletion:(void(^)(NSDictionary *data, NSDictionary *fields))completion;但很明显,这只会出现在文档中:

如何让data和fields出现缩进,就像苹果采用带参数块的方法一样?
我在苹果关于HeaderDoc的文档中找不到该怎么做
发布于 2016-02-25 00:27:21
您可以使用:
@param block My block with the following parameters:
<table>
<tr>
<td><tt>myParam</tt></td>
<td>Description</td>
</tr>
</table>https://stackoverflow.com/questions/28507180
复制相似问题