在Xcode 10及更高版本中,将光标放在属性或方法上,然后按下cmd+option+/。您可以在Paul Hudson的Xcode in 20 Seconds: Adding documentation YouTube视频中看到一个示例。