Last Updated: February 25, 2016
·
1.106K
· rabovik

Save UIImage to Desktop on iOS Simulator

A simple UIImage category for saving images to desktop when running iOS app in the simulator:

UIImage myImage = ...;
[myImage rs_saveToDesktop]; // Saving as `/Users/{username}/Desktop/RSUIImage/image.png`
[myImage rs_saveToDesktopWithName:@"my"]; // Saving as `/Users/{username}/Desktop/RSUIImage/my.png`

The sources are at GitHub.Gist: [UIImage+RSSaveToDesktop][gist]

[gist]: https://gist.github.com/rabovik/6892220