Created
March 12, 2014 16:54
-
-
Save gonzalezreal/9511235 to your computer and use it in GitHub Desktop.
Quick look UIViews in Xcode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import UIKit; | |
@interface UIView (QuickLook) | |
@end | |
@implementation UIView (QuickLook) | |
- (id)debugQuickLookObject { | |
return self; | |
} | |
@end |
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
Couldn't been easier! Here's an example of what you get:
