如何找到连接到特定IBOutlet的UI元素? [英] How to find the UI element connected to a specific IBOutlet?
本文介绍了如何找到连接到特定IBOutlet的UI元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法找到在代码中声明的IBOutlet连接到哪个UI元素?
Is there any way to find which UI element an IBOutlet declared in code is connected to?
推荐答案
转到您已声明 IBOutlet
的视图控制器文件( .h或.m)。然后你可以看到每个变量声明的左侧有一个深灰色的圆形图像。 (如果您已将IBOutlet与Storyboard / Xib相连,除非它未填充,否则会填充。)
Go to your view controller file where you have declared IBOutlet
(.h or .m). Then you can see left side of each variable declaration there is a dark grey round image. (It is filled if you have connected that IBOutlet with Storyboard/Xib unless it is unfilled.)
通过单击该图像,您可以看到显示插座连接的小弹出窗口。见下图将显示给你。
By clicking that image you can see small popover which shows connection of outlet. See below image will show you.
这篇关于如何找到连接到特定IBOutlet的UI元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文