3

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?

O Connor
  • 4,236
  • 15
  • 50
  • 91

2 Answers2

2

I think this screenshot might help you

The button must be in your viewcontroller and you can check its property and you can check the IBAction for the same.

Storyboard

Let me know if you still have the issue finding IBAction

gurmandeep
  • 1,227
  • 1
  • 14
  • 30
2

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

Vishnuvardhan
  • 5,081
  • 1
  • 17
  • 33