Xcode 8:建议中的自定义描述 [英] Xcode 8: custom description in suggestion

查看:85
本文介绍了Xcode 8:建议中的自定义描述的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在建议框中显示对我的函数的自定义说明,当我键入上述函数名称时,该提示框将显示,这与快速函数的工作方式相同:例如UIActivityIndi​​catorView.startAnimating() description 同时显示在 快速帮助菜单,然后在完成框中

I'm trying to have custom description for my functions shown in the suggestions box which shows up as I type said function names, the same way it works for swift functions: e.g the UIActivityIndicatorView.startAnimating() description is shown both in the QuickHelp menu AND in the completion box

在Xcode 7中,我只需要在函数声明之前添加带有/** */标记的注释行,ide就会相应地识别它,例如

in Xcode 7 I would just add a comment line with the /** */ tags prior to the function declaration and the ide would recognize it accordingly e.g.

但是出于某些原因,使用Xcode 8只能在实用程序"菜单的快速帮助"选项卡中显示自定义描述,而在建议框中则不显示. 是否有关于如何使用此新版本Xcode获得相同行为的建议?我将不胜感激!

but for some reason doing so with Xcode 8 only shows the custom description within the QuickHelp tab of the Utilities menu, and not in the suggestion box. Is there any suggestion about how I may obtain the same behavior with this new version of Xcode? I would appreciate it a lot!

推荐答案

听说,我找到了一些解决方案.您需要在构建设置"下将用户标题搜索路径"从否"更改为是".然后重新启动您的xcode.

Hear i found some solution. You need to change User Header Search Path No to Yes under Build settings. And then restart your xcode.

这对我来说很好.

这篇关于Xcode 8:建议中的自定义描述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆