我在向XCode 8.2.1的代碼中添加文檔時遇到問題。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中仍然不適用於我。看起來它不會很快工作:( –