Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source: Extremely Useful Library For Debugging And Perfecting iOS User Interfaces

  •  
  •  
  •  
  •  
  •  

Getting the user interface just right in an app can be difficult.

Sometimes things just are not exactly as they were in the interface builder, or there is a problem, and tracking down exactly which component is causing the problem turns into a real timesink.

I found out about an excellent library that when used within an app enables a multitude of tools, and tweaks allowing you to quickly debug, and adjust your user interfaces in real time so that you can get things exactly how you want them as quickly as possible.

The library is known as Introspect, and here is a list of features taken from the official website:

  • Simple to setup and use
  • Controlled via app-wide keyboard commands
  • 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

You can find the official page for introspect here:
http://domesticcat.com.au/projects/introspect/

The Github page can be found here:
https://github.com/domesticcatsoftware/DCIntrospect

The next time you find yourself tweaking a UI you will want to remember this.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments