Skip to content

Instantly share code, notes, and snippets.

@cbowns cbowns/gist:5289226
Created Apr 2, 2013

Embed
What would you like to do?
Serializing an image's contents in the iOS Simulator
# 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
You can’t perform that action at this time.