how to save the image on iPhone, in the gallery, in applications such as "wallpaper " ?
Hi :) i create app with wallpapers :) but i dont know how to save my images in gallery :( Help me please
On the iPhone, it's located in the lower-left corner. On the Share list that pops up, tap “Save Image” or “Save Video.” If you selected multiple items, tap “Save X Items,” where X is the number of items you've selected.
Method 1: Check your iPhone storage If there is not enough space for new files, iPhone not saving photos to camera roll will definitely appear. You can try to free up space on iPhone by deleting useless apps, delete photos, music, notes, videos, and messages. Go to "Settings" > "General" > "iPhone Storage".
To save an image you can use this line of code:
UIImage *image = [UIImage imageNamed:"someImage.png"];
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil);
There are also ways to check when the image is done saving, the full documentation can be found here: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIKitFunctionReference/Reference/reference.html
On newer iOS versions, it is required by Apple that in your info.plist you add a usage descriptor for the key Privacy - Photo Library Additions Usage Description
. (NSPhotoLibraryAddUsageDescription
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With