Wynn Netherland changelog.com/posts

DCIntrospect - Inspect Element for iOS views

Web developers have long enjoyed the “Inspect Element” features of Firebug and WebKit developer tools to poke around inside their pages at runtime. Patrick Richards, a mobile developer from down under, has created DCIntrospect, a library of visual debugging tools for iOS.

DCI screenshot

Once added to your project, DCIntrospect listens for shortcut keys to toggle view outlines, nudge views on screen, toggle view visibility, print view properties to the console, and more.

To use, be sure you’ve set the DEBUG environment variable. It’s also a good idea to target the simulator explicitly, even though DCIntrospect will work on the device as well.

[window makeKeyAndDisplay]

// always call after makeKeyAndDisplay.
    [[DCIntrospect sharedIntrospector] start];

Check out the source on GitHub for a full list of keybindings and instructions on how to customize.


Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00