O Connor
O Connor

Reputation: 4402

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?

Upvotes: 3

Views: 833

Answers (2)

Vishnuvardhan
Vishnuvardhan

Reputation: 5107

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

Upvotes: 2

gurmandeep
gurmandeep

Reputation: 1247

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

Upvotes: 2

Related Questions