ios - 如何在HeaderDoc中添加多行注释

标签 ios objective-c documentation headerdoc

这是我的代码

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

当我在WOC_OnOffImageButton内的弹出窗口中按ALT键单击Description时,我一行都得到In touchesBegan: it is considered if it was succesfull click. Automatically changes on/off images

我想在... click. Automatically...之间添加一行,因为它更易于阅读。

问题
可以吗?如果可以,怎么办?

最佳答案

是的,AppleDoc支持多行注释。使用方法如下:

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

关键是在新行上添加星号。您可能需要保存(Cmd+S)和/或清理(Cmd+Shift+K)您的项目才能在弹出窗口中查看结果。

关于ios - 如何在HeaderDoc中添加多行注释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24979166/

相关文章:

javascript - 对象中 Lambda 函数的 JSDoc

documentation - 在 Kotlin 中记录函数参数的参数

ios - 如何从 iOS/iPhone 中的 Assets 库获取照片/视频源路径?

iOS 9 - 缺少 UI 元素

ios - 在...的对象上找不到属性 NSManagedObjects 上的错误调试属性

iOS startUpdatingLocation 从未调用过

iphone - 有办法暂时关闭 UITableView 委托(delegate)吗?

r - 使用roxygen2和BibTeX引用R包中的文章?

ios - UITableViewCell 子类 : in what delegate method is it appropriate to do changes to the cells layer?

ios - 我想知道 iOS 运行时异常后的内存管理流程