在 Xcode 中,我如何知道哪个类实现了协议? [英] In Xcode, how do I know which class implement a protocol?

查看:35
本文介绍了在 Xcode 中,我如何知道哪个类实现了协议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道在 Xcode 中,我可以快速知道哪些类实现了某些协议吗?

I am wondering in Xcode, can I quickly know which classes implement some protocols?

我不想使用搜索,但想快速识别此类.

I don't want to use search, but want to quickly identify such classes.

推荐答案

特别是协议实现的类只需按下协议方法上的命令 btn + 鼠标右键单击"..

in particular class in which protocol implement just press 'command btn + right click of mouse' on protocol method..

它将显示具有此方法实现的所有类的列表.你可以通过点击它来跳转到那个类...

it will show list of all class with implementation of this method. and you can jump on that class by just click on it...

这篇关于在 Xcode 中,我如何知道哪个类实现了协议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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