O'Reilly logo

Xcode 7 Essentials - Second Edition by Jayant Varma, Brett Ohland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Debugging the view hierarchy

The tools that have been discussed so far in this chapter are great for debugging the models and controllers that power our applications. But what about our views? This is where the Spark Inspector comes in.

Debugging the view hierarchy

The debug view hierarchy button

While your app is running, you can click the Debug View Hierarchy button in the debug area toolbar to open this inspector. A three-dimensional, extruded view is shown on screen, which you can click and drag to rotate, as shown here:

Debugging the view hierarchy

When you click on a view within the Spark Inspector window, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required