Created
May 14, 2014 17:32
-
-
Save dwsolberg/c93b659a20e840c39f9d to your computer and use it in GitHub Desktop.
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
| - (UIImage *)debugQuickLookObject | |
| { | |
| UIGraphicsBeginImageContextWithOptions(self.view.layer.bounds.size, NO, 0); | |
| [self.view.layer renderInContext:UIGraphicsGetCurrentContext()]; | |
| UIImage * image = UIGraphicsGetImageFromCurrentImageContext(); | |
| UIGraphicsEndImageContext(); | |
| return image; | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this in a category for a UIViewController to show the view controller's view in the Xcode debugger.