Skip to content

Instantly share code, notes, and snippets.

@gonzalezreal
Created March 12, 2014 16:54
Show Gist options
  • Save gonzalezreal/9511235 to your computer and use it in GitHub Desktop.
Save gonzalezreal/9511235 to your computer and use it in GitHub Desktop.
Quick look UIViews in Xcode
@import UIKit;
@interface UIView (QuickLook)
@end
@implementation UIView (QuickLook)
- (id)debugQuickLookObject {
return self;
}
@end
@gonzalezreal
Copy link
Author

Couldn't been easier! Here's an example of what you get:

@gonzalezreal
Copy link
Author

Apparently this works out of the box in Xcode 5.1 if you quick look a UIViewController's view. You'll still need the category for all the other views.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment