Questions tagged [photokit]

PhotoKit (also known as Photos Framework) is a framework that allows you to retrieve assets for display and playback, edit their image or video content, or work with collections of assets such as albums, moments, and iCloud Shared Albums. This framework is available in iOS 8.0 and later.

PhotoKit (also known as Photos Framework) is a framework that allows you to retrieve assets for display and playback, edit their image or video content, or work with collections of assets such as user albums, smart albums and iCloud Shared Albums. This framework is available in iOS 8.0 and later.

256 questions
0
votes
1 answer

What is the equivalent of ALAssetsGroupPropertyPersistentID for Photos Framework

Since ALAssetsGroup was replaced by PHAssetCollection on Photos Framework how can I uniquely identify an asset collection (album) even if the user renames it? I was using ALAssetsGroupPropertyPersistentID before PhotoKit existed.
fpg1503
  • 7,492
  • 6
  • 29
  • 49
0
votes
1 answer

Do you need to enable CloudKit to access iCloud Photos?

I'm complete Xcode newbie and I'm trying to find out if I need to enable CloudKit in order to access iCloud Photos, or does the PhotoKit handle everything? Also I'm guessing it's probably a good idea to have a separate developer account when messing…
RickBowden
  • 189
  • 2
  • 15
0
votes
2 answers

Sorting Shared Albums with the Apple IOS Photokit

Before I do a lot of fruitless experimenting, does anyone know if you can sort shared albums using the Apple Photokit. I know the native photos app is not able to.
RickBowden
  • 189
  • 2
  • 15
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
2 answers

PhotoKit frameWork : What is assetSource of PHAsset?

When I print the description of PHAsset , it includes assetSource=3 or assetSource=0. May I know what does this assetSource mean? What are the numbers like 3,0 related to? As per my observation for a particular PHAsset with assetSource=3 its…
rishu1992
  • 1,414
  • 3
  • 14
  • 33
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
0
votes
2 answers

iCloud Photo Library - local cache for images originally smaller than the requested size

we are a bit confused how device cache is working and how it is suppose to be working. Images with an original resolution smaller than what is specified in the request do not seem to be cached at all and every time we call RequestImageForAsset looks…
0
votes
2 answers

PhotoKit iOS8 - Retrieve image using the "PHImageFileURLKey"

Is there anyway I can use the Path returned from the "PHImageFileURLKey" to go into the photo library and retrieve the image? The path returned is in this format: "file:///var/mobile/Media/DCIM/102APPLE/IMG_2607.JPG" My plan is to store this path…
pnavk
  • 4,552
  • 2
  • 19
  • 43
0
votes
1 answer

getting a poster frame from a video with PhotoKit (iOS8)

I want to extract a UIimage from a video asset, to use as a poster. According to the doc for the PHImageManager, I should be able to use requestImageForAsset:targetSize:contentMode:options:resultHandler:. Quoting from the doc: You can use this…
Hugo
  • 974
  • 9
  • 21
0
votes
1 answer

PHImageManager returns thumbnails instead of requested size

I have this code for retrieving an image and adding it to an array: //Set the size of the video to 1280x720 CGSize targetSize = CGSizeMake(1280, 720); PHImageRequestOptions *options = [[PHImageRequestOptions alloc]init]; …
Kaitis
  • 628
  • 9
  • 21
-1
votes
1 answer

Copy written billion+ pixel image to Photos?

My app is successfully writing multi-gigapixel images (many billions of pixels per image). Is there a way, without reading the image as a UIImage, to add or copy the saved image to Photos? It's difficult to search for the subject to find a solution…
Jeshua Lacock
  • 5,730
  • 1
  • 28
  • 58
-1
votes
2 answers

How to fetch screen recordings video

As we know, we can fetch screenshot photos with PhotoKit framework like this, let collection = PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .smartAlbumScreenshots, options: fetchOption) But how to fetch screen recordings…
alpine
  • 927
  • 6
  • 17
-1
votes
2 answers

PHPicker delegate error: PHPickerViewControllerDelegate doesn't respond to picker:didFinishPicking

In WWDC20 apple introduced PHPicker, the replacement for UIImagePickerController. I have a wrapper NSObject class witch handles all the configuration and presentation of image picker controller, now I'm replacing the implementation to support…
Fabiosoft
  • 1,141
  • 14
  • 32
-1
votes
1 answer

UItextView with photo to open it in fullscreen

I am trying to make an app similar to Notes app. I have a UITextView to display NSAttributedString. I am able to add photos using NSTextAttachment and it all works fine. Now when a user taps on a photo, I want to present a new UIViewController which…
FE_Tech
  • 1,534
  • 13
  • 25
-1
votes
1 answer

PhotoKit - Swift 4 - How to find identical Photos or duplicate photos - PHFetchResult

I was able to get the list of photos from photo library with the following code. guard let assetCollection = collection as? PHAssetCollection else { fatalError("asset collection is required.") } destination.fetchResult…
Akbar
  • 1,509
  • 1
  • 16
  • 32
1 2 3
17
18