iclinux
iclinux

Reputation: 532

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!

Upvotes: 4

Views: 2318

Answers (2)

wolfrevo
wolfrevo

Reputation: 2032

Xcode's inspector allows you to jump to the definition of a view's class.

enter image description here

Upvotes: 1

Piotr Bernad
Piotr Bernad

Reputation: 261

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

Upvotes: 2

Related Questions