Kodeco Forums

View Debugging in Xcode 6

In this tutorial, you will learn view debugging by using some of the awesome new tools provided with Xcode 6!


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1879-view-debugging-in-xcode-6

You can identify specific views in the debug view hierarchy if you assign an accessibilityLabel to them. Then the string you assigned to the view’s accessibilityLabel will show up next to the view’s class in the debug view hierarchy-very helpful in identifying what view is what in your code if there are lot’s of views.

view.isAccessibilityElement = YES;
view.accessibilityLabel = yourString;

This tutorial is more than six months old so questions are no longer supported at the moment for it. We will update it as soon as possible. Thank you! :]