Top "Photokit" questions

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.

Apple Live Photo file format

Apple will introduce Live Photo in iOS 9/iPhone 6s. Where is the file format documented?

ios ios9 photokit phlivephoto
How to get an ALAsset URL from a PHAsset?

You can do it sneakily† using the undocumented PHAsset.ALAssetURL property, but I'm looking for something documented. † In Objective-C, this …

ios8 alassetslibrary alasset photokit phasset
Save image to photo library using photo framework

My app crashes every time when I try to save image using photo framework. -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(…

ios objective-c ios8 photokit phasset
Save video to the gallery and get the path for the video stored to Gallery

I want to save a video chosen from UIImagePickerController to the Photos album. After that i need to fetch the …

ios swift video uiimagepickercontroller photokit
Fetch only photos of type PHAssetMediaTypeImage form asset collection type PHAssetCollectionTypeSmartAlbum

I am using the Photos framework to fetch album list in iOS8. I am able to do it using PHFetchResult *…

ios photolibrary photokit phasset
Retrieve ALAsset or PHAsset from file URL

Selecting images in Photos.app to pass to an action extension seems to yield paths to images on disk (e.…

ios8 ios8-extension photokit ios-extensions
How can I determine file size on disk of a video PHAsset in iOS8

I can request a video PHAsset using the Photos framework in iOS8. I'd like to know how big the file …

ios video photokit photosframework
Which PHAssetCollection to use for saving an image?

In iOS 8's Photos.framework, I'm trying to save a UIImage to the user's photo library, much in the same …

ios objective-c ios8 photokit
How to identify if a PHAsset is not completely downloaded from iCloud (so I need to request again with options.networkAccessAllowed)

The docs say: PHImageResultIsInCloudKey: A Boolean value indicating whether the photo asset data is stored on the local device or …

ios photokit phasset
PHPhotoLibrary error while saving image at url

I create an image at url provided by PHContentEditingOutput. When I load data to UIImage and save it like this …

ios image url photokit