我创建了一个带有块作为参数的方法。该块需要一些参数,因此我想像苹果公司在具有类似格式的方法中那样缩进文档...
以下是一个简单的示例代码:
但是很明显这只会在文档中显示如此:
以下是一个简单的示例代码:
/** 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
像 Apple 那个带有参数块的方法一样缩进呢?
我在 Apple 的 HeaderDoc 文档 中没有找到如何实现这一点。