Now this looks downright handy for sanity checking your UIKit-based interface:

Introspect is a small library for debugging user interfaces created with UIKit on iOS. It contains tools for showing positions and other properties of views, highlighting of non-opaque views, showing outlines and more…

  • Highlighting of view frames
  • Displays a views origin & size, including distances to edges of main window
  • Move and resize view frames during runtime using shortcut keys
  • Logging of properties of a view, including subclass properties, actions and targets (see below for an example)
  • Manually call setNeedsDisplay, setNeedsLayout and reloadData (for UITableView)
  • Highlight all view outlines
  • Highlight all views that are non-opaque
  • Shows warning for views that are positioned on non-integer origins (will cause blurriness when drawn)
  • Print a views hierarchy to console (via private method recursiveDescription)


Wow, that’s quite the functionality set indeed. Grab it off github for next time your UI is acting squirrelly!

h/t: @cocoacontrols!


iOS Open Source : User Interface Debugging with DCIntrospect shows some usage examples.

Alex | May 25, 2011

Leave a Reply