Created
April 2, 2013 01:25
-
-
Save cbowns/5289226 to your computer and use it in GitHub Desktop.
Serializing an image's contents in the iOS Simulator
This file contains 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
# In the debugger: | |
# (fill in <home> and <image> below with your user path and the image's ivar | |
p (BOOL)[(NSFileManager *)[NSFileManager defaultManager] createFileAtPath:@"<home>/Desktop/image.png" contents:(void *)UIImagePNGRepresentation(<image>) attributes:nil] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment