Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the UI element connected to a specific IBOutlet?

Is there any way to find which UI element an IBOutlet declared in code is connected to?

like image 486
Aniket Deshpande Avatar asked Dec 19 '22 09:12

Aniket Deshpande


1 Answers

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.

enter image description here

like image 132
Kampai Avatar answered Dec 24 '22 02:12

Kampai