The PHPhotoLibrary framework provides interfaces for viewing, editing and creating assets and collections managed by the IOS Photos app.
Questions tagged [phphotolibrary]
196 questions
0
votes
1 answer
PHPhotoLibrary - overwrite bunch of photos without or with one confirmation alert
The task is to sync set of images in a custom album on iPhone with content of the app. So they are created by the app, and then user can change something inside the app, and all images should be modified.
The problem is that Photos Framework asks…

Pavel Antonenko
- 41
- 3
0
votes
1 answer
Displaying thumbnail after photo shoot in Swift 2
When trying to load and display a thumbnail of a photo which was just taken like this:
func photom(){
if let videoConnection = self.stillImageOutput.connectionWithMediaType(AVMediaTypeVideo) {
…

HansiOber
- 317
- 2
- 13
0
votes
0 answers
Deleting large number of images using PHPhotolibrary
Hi i have a performance issue with the deletion of large number of images. I am using the following code for deletion.
[[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
[PHAssetChangeRequest deleteAssets:assetsToBeDeleted];
}…

Aravind Bhuvanendran
- 507
- 7
- 23
0
votes
0 answers
Connection to assetsd was interrupted or assetsd died "Physical Memory Dump"
I'm trying to make a photo album but I always get this error about memory and I don't know how to resolve it
I have a collection view to display all photos from the album, if the album doesn't exist I make one
2015-11-30 09:41:22.208…

Rojke
- 47
- 1
- 9
0
votes
1 answer
Adding photo to custom folder using PHPhotoLibrary also adds photo to camera roll
I am using PHPhotoLibrary to create a custom folder and add pictures in it. It works ok, but the picture I am adding to the custom folder is also added to the "camera roll" folder. I found this old thread Add photos in custom album also added in…

allo86
- 946
- 1
- 9
- 23
0
votes
1 answer
How to fetch PHAsset from assetURL in Photos framework?
I want to fetch PHAsset using assetURL.
I used the following code :
NSURL *assetURL=[NSURL URLWithString:file.filePath];
PHFetchResult *fetchResult=[PHAsset fetchAssetsWithALAssetURLs:@[assetURL] options:nil];
PHAsset *asset=…

Priyanka
- 442
- 1
- 5
- 13
0
votes
1 answer
App crashes on enabling Camera Access from Settings iOS 9
I've read this almost duplicate question: App crashes on enabling Camera Access from Settings iOS 8 , but my issue isn't solved there.
After initially denying permission for photo library access, I deep link to settings. After enabling access to…

cph2117
- 2,651
- 1
- 28
- 41
0
votes
1 answer
Always save screenshot in same custom name app album in "Photos"
I am building an app with button that make screen shot. Now I want to save all screen shots made in this app, in same custom name app album. I already know how to create album just the first time that app opens with code bellow.
I am creating my…

MOzeb
- 423
- 1
- 6
- 14
0
votes
1 answer
Delete a single photo from a burst from the camera roll in Swift
So I have code that will delete images from the camera roll. It works fine, and can delete single images from a burst, however one of the images, if deleted, will delete the entire batch and I can't figure out how to stop that. It usually seems to…

Individual11
- 374
- 4
- 16
0
votes
1 answer
How do you get a pointer to a new PHCollectionList (or PHAssetCollection) after creating
I'm trying to create a Photo "folder" and return a pointer to it. Is this possible? Below is the code I have so far. Thanks.
- (PHCollectionList *) CreatePhotoFolder: (NSString *) folderName
{
[[PHPhotoLibrary sharedPhotoLibrary]
…

NoBot
- 198
- 1
- 7
0
votes
1 answer
UITableView force sectionIndex to update without calling reloadData
I'm modifying my UITableView's data source from a PHChange instance, and this works fine. What I don't understand is I can't get the sectionIndex on the right of the UITableView to update unless you reload the whole UITableView with: reloadData.
Is…

klcjr89
- 5,862
- 10
- 58
- 91
0
votes
1 answer
PhotoKit: includeAllBurstAssets in PHFetchOptions not working
I am trying to use the includeAllBurstAssets of PHFetchOptions.
In my camera roll, there are about 5 burst assets (each with about 10 photos).
To enumerate the assets in the Camera Roll I'm doing the following:
PHFetchOptions *fetchOptions =…

holtmann
- 6,043
- 32
- 44
-1
votes
1 answer
iOS 13 - Saving UIImage with wrong orientation
I am facing some issues with the orientation of the photos.
After taking a portrait picture and saving it to the camera roll, I see it rotated. But when I add it to an Image View it looks ok.
Anyone else found the same issue? Is there an open bug in…
-1
votes
1 answer
What's the key for sorting album with date of addition in iOS developer?
If sorting album with date of creation, I could give the key creationDate, so what's the key for date added? additionDate? No, it's incorrect.
NSSortDescriptor(key: "creationDate", ascending: false)

Leo
- 1,545
- 13
- 24
-1
votes
1 answer
EXIF Data not saving with image?
I want save some string with image in particular album.
so I used [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
to add assets.
but when I get photos from album it doesn't have exif data.
my code for save EXIF data is here . Any answer…

Rushi trivedi
- 737
- 1
- 15
- 37