Skip to content

Instantly share code, notes, and snippets.

@cbowns
Created April 2, 2013 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbowns/5289226 to your computer and use it in GitHub Desktop.
Save cbowns/5289226 to your computer and use it in GitHub Desktop.
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