Search code examples
iosswiftxcodeibactioniboutlet

Which IBAction referenced to which Button in Swift iOS development?


New to iOS development with Swift code. A previous developer has created 2 buttons and used the CTRL-drag-drop technique to generate the IBAction methods. The same as the buttons, he created two labels and two IBOutlet variables. Let's say that he did not name each item, each outlet and each action appropriately, how do I find out which IBAction references to which button and which IBOutlet to which label in the Xcode environment?


Solution

  • Here is the another way to check the widget action and outlet representation in xib.

    Click on the IBOutlet/IBAction connected indication circle, It will show a popup of represented widget path and then click on it. It navigates you to the represented widget on xib.

    enter image description here