The PHPhotoLibrary framework provides interfaces for viewing, editing and creating assets and collections managed by the IOS Photos app.
Questions tagged [phphotolibrary]
196 questions
2
votes
0 answers
Can you hide Photos in the iOS's Photos app's hidden folder programmatically via Apple's Photokit/API (or am i stuck to having to do by hand)
Like outlined in these steps:
Open your Photos app.
Select the photo or video that you want to hide.
Tap the share button > Hide.
Confirm that you want to hide the photo or video.
seen here https://support.apple.com/en-us/HT205891
So needs to…

garrettmac
- 8,417
- 3
- 41
- 60
2
votes
0 answers
When is PHFetchResultChangeDetails's "hasIncrementalChanges" equal to NO?
This question is similar to this one: When is PHFetchResultChangeDetails's "hasMoves" equal to YES?
What should the user do in order to force PHPhotoLibrary to send PHChange where hasIncrementalChanges is NO?

olha
- 2,132
- 1
- 18
- 39
2
votes
1 answer
Swift: Delete photo in iOS Action Extension
So i'm developing an app to let user select a few photos in the system Photo Library then using the Action Extension via the share sheet to delete some of those photos.
I was using extensionContext.inputItems to get the URLs of the selected…

Alice Chan
- 2,814
- 2
- 16
- 16
2
votes
0 answers
add/modify/edit the photo's exif in swift
I am building an app which can add/modify/edit the exif after the photo filtered. The photo miss all the exif after adding filter. I have try added the new exif to the photo by attempting using the code below, which is not work. The exif still blank…

andyagul
- 21
- 2
2
votes
1 answer
Swift 3 save an image taken from camera and save path on database
I can take a picture with phone save it on gallery, but I don't know how can stock the path of picture, so after I can retrieve it from gallery (I don't know yet how retrieve a picture by his path) to show it on my controller.
I have this code…

tamtoum1987
- 1,957
- 3
- 27
- 56
2
votes
0 answers
How to save custom data to PHAsset using Photos.Framework
Im using Photos framework to save and retrieve videos from the device's album.
While saving my videos, i would like to add some custom data, like: id, name, description, and so on...
and to get all this data while retrieving it back from the…

user3660992
- 113
- 1
- 7
2
votes
3 answers
How To get Image URL From PHAsset? Is it possible To save Image using PHAsset URL to document Directory?
I used
NSURL *urlA = [info valueForKey:@"PHImageFileURLKey"];
but when i try to save image using URL then URL is nil.
NSData *pngData = [NSData dataWithContentsOfURL:urlA options:NSDataReadingMapped error:nil];

Keyur
- 180
- 1
- 5
- 20
2
votes
1 answer
Saving DNG (raw photos) taken on other camera to iOS Photo Library
I write an app that reads dng files from my Ricoh GR II and save them to iOS 10's Photo Library, code like this
let photoLibrary = PHPhotoLibrary.shared()
photoLibrary.performChanges({
PHAssetChangeRequest.creationRequestForAsset(from: image)
})…

Xiao Xiao
- 931
- 8
- 19
2
votes
1 answer
How to save a photo with custom filename using PHPhotoLibrary on iOS/Swift 2?
I'm trying to save an image with a custom filename with PHPhotoLibrary but it for me is impossible. The filename of image always is IMG_XXX.JPG. I get its filename from photos program.
I don't see the filename in my iPhone.

Jirson Tavera
- 1,303
- 14
- 18
2
votes
1 answer
In PHPhotoLibrary, photoLibraryDidChange doesn't notify all update
I'm using PHPhotoLibrary to save and fetch images for my application's album in iPhone.
When my album has a lot of images (about 5,000 still images),
my application download 10 images from network, then save to Camera roll and add to my…

M.Masa
- 532
- 4
- 20
2
votes
1 answer
In PHPhotoLibrary, how to know whether video file can save on iPhone or not
I'm changing over from ALAssetsLibrary to PHPhotoLibrary and want to know whether or not video file can save or not.
In ALAssetsLibray, you know, we could know it before start saving video file with the API
-…

M.Masa
- 532
- 4
- 20
2
votes
2 answers
I am using PH photo library to get all the photos and videos
i am saving all photos to uicollectionview. but it is saving in uiimageview. i need to show a play button when the file is video type.
is there any way to find the type of the media while fetching ?

Lal Castro
- 23
- 4
2
votes
2 answers
Detect when user tapped Don't Allow when making changes to photo library
When you want to make a change to a PHAsset, you wrap it up in a performChanges block. You get a success Bool and an error NSError in the completion block. Now I would like to show an alert to the user in the case the request failed. This does the…

Jordan H
- 52,571
- 37
- 201
- 351
2
votes
0 answers
getting : use of "@import" when modules are disabled when importing Photos
I am trying to create a plugin for osx using the new photos framework. So I created a new Xcode project (using Version 7.1 (7B91b)), I chose the bundle template under osx and then integrated all my files in the project.
but at the line :
@import…

DrDoom
- 149
- 3
- 16
2
votes
2 answers
PHPhotoLibrary getting album and photo info
I am trying to get info on all the albums/photos using the PHPhotoLibrary. I barely know objective C, and i've looked at some tutorial/sample but couldn't find everything that I needed.
Here is a link to the sample code I based my code…

DrDoom
- 149
- 3
- 16