DCIntrospect is a tool that I have found to be invaluable to my work/personal projects recently.
From Pat’s project description:
Introspect is small set of tools for iOS that aid in debugging user interfaces built with UIKit. It’s especially useful for UI layouts that are dynamically created or can change during runtime, or for tuning performance by finding non-opaque views or views that are re-drawing unnecessarily. It’s designed for use in the iPhone simulator, but can also be used on a device.
If you are laying out custom views and tracking their position/movement throughout the lifecycle of your app this tool will be quite useful.
I heard about this project via word of mouth a while ago, and a few Swipe Conference speakers were speaking very highly of it.
Three things to check out in the included demo app (and to use in your app):
- Hit spacebar to activate DCIntrospect’s inspector in the iOS simulator.
- Select any view in your app and press the ‘p’ button on your Mac’s keyboard to dump the properties of that view
- Use the arrow keys on your keyboard to nudge views around whilst your app is running (similar to Webkit’s Web inspector) Example of properties logged by DCIntrospect’s inspector:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20