简体   繁体   English

如何从XCode故事板“转到”参考插座的代码?

[英]How do I “go to” a referencing outlet's code from the XCode storyboard?

有谁知道如何从XCode故事板的活动/出口侧边栏快速转到参考插座的代码?

The outlet doesn't have any code. 插座没有任何代码。 It's the IBAction link that points to code. 它是指向代码的IBAction链接。

I haven't found a way to display the IBAction method automatically, but if you select the object (usually a button) and view the Connections Inspector, it will tell you the target and method name that is being invoked. 我没有找到一种自动显示IBAction方法的方法,但如果您选择对象(通常是一个按钮)并查看Connections Inspector,它将告诉您正在调用的目标和方法名称。 You can then find that method in your project's source code. 然后,您可以在项目的源代码中找到该方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM