【发布时间】:2017-06-09 09:17:00
【问题描述】:
我在 Xcode 8.2.1 中向我的代码添加文档时遇到问题。
这是我的代码:
/// Test documentation method
///
/// - Parameter string: The input string
/// - Returns: The output bool
func testMethod(string:String) -> Bool {
if string == "YES" {
return true
}
return false
}
文档在快速帮助窗口中按预期显示,但说明未在代码自动完成窗口中显示。
有没有办法让描述显示在自动完成框中,如下图所示:
【问题讨论】:
-
在 Xcode 9b1 中仍然对我不起作用。看起来它不会很快起作用:(
-
您的问题有什么解决方案吗?我正在寻找 Apple 的 UILabel 方法,但仍然没有:/
标签: swift xcode autocomplete swift3 documentation