Skip to content

Instantly share code, notes, and snippets.

@JosephDuffy
Last active September 11, 2019 11:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JosephDuffy/eb974028a12acec16b0f32983f7f3c96 to your computer and use it in GitHub Desktop.
Save JosephDuffy/eb974028a12acec16b0f32983f7f3c96 to your computer and use it in GitHub Desktop.
Extracting images from a UIImageView
  1. Find UIImageView address (e.g. via view debugger)
  2. In the console: po [UIImagePNGRepresentation((UIImage *)[_address_ image]) base64EncodedStringWithOptions:0]
  3. Copy base 64 output
  4. In a terminal: pbpaste | base64 -D > image.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment