用 Xcode 开发时,想查看某个方法的具体实现。但是 Jump to Definition 后,只有函数签名,没有具体代码实现。要如何才能跳转到代码实现处呢?
搜了下,在 stackoverflow 上发现相同的问题: https://stackoverflow.com/questions/8748340/xcode-shortcut-for-jumping-to-implementation-of-a-method , 但是没有有效的回答
![]() | 1 qq73666 2022-09-23 10:25:22 +08:00 |
2 cht 2022-09-23 11:02:20 +08:00 <kbd></kbd> + <kbd>F</kbd> |
![]() | 3 wisej OP @qq73666 可能我没表达清楚。我的意思是比如我用了 swiftui 里的 View ,Jump to Definition 跳转后,只有函数的声明,但是没有 func body ,看不到具体实现。 不是希望说 command click 可以直接跳转 |
4 foxwe10 2022-09-27 21:14:57 +08:00 via iPhone 框架没开源,只能看到 Interface 层 |
![]() | 5 ethusdt 2022-11-01 16:12:48 +08:00 xcode 通过 swiftinterface 或者 swiftmodule 生成出来的 就是个头文件给你看的, 具体实现看不见 |