Reputation: 532
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
Reputation: 2032
Xcode's inspector allows you to jump to the definition of a view's class.
Upvotes: 1
Reputation: 261
There is no such functionality in Xcode view debugger, however you can use accessibilityLabel to distinguish views in view debugger.
Upvotes: 2