How to save a UIImage to the Camera Roll in iOS

The UIImage Class provides a method that can save an image straight to the Camera Roll. In this example, yourImage is a UIImage:

That’s short and sweet – but there’s no feedback by default, like a delegate method that informs you of how this operation went.


A much better option is to make use of the selector this method can call upon success or failure, like so:


This will call the following method which will contain an NSError object. Here we test if it contains an error message, and display it if it does. If all went well a success message is displayed:


About Jay Versluis

Jay is a medical miracle known as Super Survivor. He runs two YouTube channels, five websites and several podcast feeds. To see what else he's up to, and to support him on his mission to make the world a better place, check out his Patreon Campaign.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.