ar6y9q
Last Updated: February 25, 2016
·
918
· 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