UIImageWriteToSavedPhotosAlbum
should be faster, but in any case you need, and you should do this in the background thread so as not to block the main thread and the user interface. Something like
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ UIImageWriteToSavedPhotosAlbum(img.image, nil, nil, nil); });
source share