Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to find related code with debug view hierarchy in xcode?

in Android, we can use uiautomatorviewer/hierarchyviewer to find a view's Id quickly, and with the Id, we can find the related code.

My question is: in iOS, how can I find the related code via debug view hierarchy?

Thanks a lot!

like image 313
iclinux Avatar asked Oct 20 '25 16:10

iclinux


1 Answers

There is no such functionality in Xcode view debugger, however you can use accessibilityLabel to distinguish views in view debugger.

like image 157
Piotr Bernad Avatar answered Oct 23 '25 05:10

Piotr Bernad