Questions tagged [phphotolibrary]

The PHPhotoLibrary framework provides interfaces for viewing, editing and creating assets and collections managed by the IOS Photos app.

196 questions
1
vote
1 answer

Swift: PhotoLibrary delete assets and get progress

I need to show progress of deleting photos and videos from photo library. In case of few photos - deletion can take few seconds but in case of 1000 photos - it will take few minutes. So, i need to show a progress somehow. How can I do that? My code …
Haloo
  • 57
  • 5
1
vote
1 answer

How do you redirect user to settings after denying permissions for Save Image from UIActivityController?

After a user takes a photo in my app, there is a UIUserActivity that is presented that allows users to save and image. A pop up comes up and asks for permission to write the photo to the users photo album. However, if the user denies there is no way…
Matthew S.
  • 239
  • 2
  • 7
1
vote
1 answer

Check if saving to camera roll was successfull

How do I check if a user was able to save to the camera roll during an activityViewController? For example, I have an activity view controller that offers the option to save to the camera roll. After the user saves the picture, my app displays a…
1
vote
2 answers

Creating Subfolder inside a folder using PhotoKit

I understand how one can create a folder programmatically using Apple's PhotoKit API and add Photos to the folder. PHPhotoLibrary.shared().performChanges({ let req =…
1
vote
1 answer

Photo Library permissions - Why is my app not showing in the Settings app? (iOS 12.1 Xcode 10.1)

My app isn't showing in the iPhone's Settings app (similar issue on both physical device & simulator). I'm using Xcode 10.1 & iOS 12.1. It needs to save photos to the user's photo library so I added the right keys (listed below) in the info.plist…
Edouard Barbier
  • 1,815
  • 2
  • 19
  • 32
1
vote
0 answers

How to export slow motion video (240 fps) from camera roll in objective c?

I am going to work with slow motion video (240fps) selected from camera roll. I've used following code to load asset from camera roll. PHVideoRequestOptions *options = [PHVideoRequestOptions new]; options.version =…
gstream
  • 525
  • 6
  • 18
1
vote
1 answer

PHAsset Create with Adjustment Data in One Go

TL, DR: I want to create a new asset in the photo library and apply adjustment data (edits) to it, without the user being prompted twice. The Background I am developing an iOS photo editing extension, and providing similar functionality in the…
Nicolas Miari
  • 16,006
  • 8
  • 81
  • 189
1
vote
1 answer

How to properly fetch a custom album from PHAssetCollection

I've created a custom album now I am attempting to download a video from an FTP site and move it to the custom album. I'm using Visual Studio 2017 Xamarin C# ios 11.4. Permissions set in Info.plist Prior to this block, I am testing to verify the…
technified
  • 353
  • 1
  • 2
  • 15
1
vote
1 answer

PHAssetChangeRequest Saving at Low Resolution

I am capturing live video within the app and saving it using PHAssetChangeRequest However, the video is saving to the camera roll at very low resolution. If I take the same exact video (same phone) from within the camera app, it saves to the camera…
C6Silver
  • 3,127
  • 2
  • 21
  • 49
1
vote
1 answer

Swift how to show alert to request permission for photo library?

I've hit "cancel" on a popup that asks permission for the photo library in the app I made. This comes from something I didn't make, but from the OS. Now I need a fallback if the user tries to hit the photo library button again. The authorization…
Chewie The Chorkie
  • 4,896
  • 9
  • 46
  • 90
1
vote
1 answer

How to display Live-photos Videos from library and display in Collection-View in iOS Swift?

For Displaying the Live-Photos: func fetchLivePhotos() { let options = PHFetchOptions() options.sortDescriptors = [ NSSortDescriptor(key: "creationDate", ascending: false) ] options.predicate = NSPredicate(format: "(mediaSubtype & %d)…
Pratik Panchal
  • 339
  • 5
  • 13
1
vote
0 answers

PHAssetCreationRequest DNG File Name

This is a snippet from Apple's sample code AVCamManualExtendingAVCamtoUseManualCaptureAPI where the DNG data has to be temprorily written in to a file before moving to PHPhotoLibrary: [PHPhotoLibrary requestAuthorization:^( PHAuthorizationStatus…
Gizmodo
  • 3,151
  • 7
  • 45
  • 92
1
vote
2 answers

Get file path of saved image to camera roll iOS (Obj-c)

I used UIImageWriteToSavedPhotosAlbum to save image to Camera Roll, but I want to get a reference to get back to the same image. Is it possible? I have a link (albeit in Japanese) that says it's possible to get the file path, but as of what I…
IBG
  • 465
  • 12
  • 34
1
vote
1 answer

if photolibrary permission is given and camera permission is not given then camera opens and take a blank photo

I have denied permission of camera but given permission of photolibrary previously. But camera opens with black screen. and I can see the option to take photo. Is there any way to not open camera. My code is like this…
1
vote
0 answers

How to create folder inside photos library in iOS swift

I am working on a photo sharing app in iOS. It creates a lot of albums in the photos library. But I want to have a single folder in device photos library and have all my albums inside of it. I know how to create an album in photos library and also…
Akhilendra Singh
  • 661
  • 11
  • 16