XCode: Quick Look for UIViews


Xcode 5.0 introduced an interesting new feature: Quick Look for variables. Basically, it lets you inspect variables and their contents in a graphical way. Xcode 5.1 improves the feature even further with the addition of debugQuickLookObject. This method allows you to provide quick look content for any of your own classes. A bit like debugDescription but more advanced.

Using this, Inferis created an implementation which allows one to quick look at UIViews. Usage is really simple:

Just include UIView+DebugQuickLook.m into your project, and all your views automagically gain debugQuickLookObject.

Download the implementation directly, or install using CocoaPods:

pod 'UIView+DebugQuickLook', :git => 'https://github.com/Inferis/UIView-DebugQuickLook.git'

UIView+DebugQuickLook Source (GitHub) →
Quick Look for UIView (Tech background) →

Published by Bramus!

Bramus is a frontend web developer from Belgium, working as a Chrome Developer Relations Engineer at Google. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.