假设我有两个课程:
/**
This class should be used together with [Foo]( ??? ).
*/
class Bar {
func doNothing() {}
}
/**
Description of what Foo does goes here.
*/
class Foo {
func doNothing() {}
}
我想在 Xcode 中创建一个指向 Foo 或 Bar 快速帮助的 Foo 快速帮助的链接。有可能吗?如果是这样,怎么办?
The [name](target)
据我所知,链接的语法不符合标准苹果的文档 https://developer.apple.com/library/content/documentation/Xcode/Reference/xcode_markup_formatting_ref/Links.html#//apple_ref/doc/uid/TP40016497-CH18-SW1 and 更多苹果文档 https://developer.apple.com/library/content/documentation/Xcode/Reference/xcode_markup_formatting_ref/MarkupFunctionality.html#//apple_ref/doc/uid/TP40016497-CH54-SW1.
我只是偶然发现了这一点。显然,如果用反引号括起来的文本恰好是一个类,它将被呈现为该类的超链接。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)