10

I have seen that Apple's HeaderDoc User Guide has been marked as "Retired Document" with this note:

Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.

This document was last updated in May. So... which the best practices for documenting code now in Xcode 8 would be? I don't find further information regarding this.

4

1 回答 1

3

Apple 在 xCode 8 中添加了新功能,以便在您的代码中轻松添加文档。为此,只需将光标移动到任何符号并选择编辑器 > 结构 > 添加文档 (Command-Option-/)。Xcode 扫描您选择的符号并添加一个文档注释大纲,包括命名参数和返回类型(如果存在)。

更多信息: http ://ericasadun.com/2016/09/16/xcode-8-document-coding-enhancements/

于 2016-10-19T12:39:52.053 回答