Top "Phasset" questions

A `PHAsset` is an object in the iOS Photos Framework (aka PhotoKit) that represents an image or video file on the iOS device.

How to get NSData from file by using PHAsset

I have file at path file:///var/mobile/Media/DCIM/100APPLE/IMG_0197.mov But when I try this code- NSError *…

ios file nsurl phasset
iOS 11: [ImageManager] Unable to load image data

After update to iOS 11, photo assets now load slowly and I get this message in console: [ImageManager] Unable to load …

swift uiimage gallery ios11 phasset
How do I determine if a PHAsset in a PHFetchResult represents a deleted photo?

I'm trying to grab a thumbnail of the last photo taken on a device using the new Photos framework in …

ios photokit phasset
How to Play Videos PHAsset in iOS?

I want to play video from PHAsset, collected from iOS Photos. PHAsset video nsurl (https://stackoverflow.com/a/35099857/1084174) is valid …

ios swift video nsurl phasset
How to use PHCachingImageManager

I know that there is already this question on SO, but I don't think that the given answer is satisfying/…

ios swift photosframework phasset
How to properly detect a PHAsset's file type (GIF)

I have no idea why this is so difficult. I'm trying to determine the file type of a PHAsset, specifically, …

ios objective-c gif photos phasset
How to access NSData/NSURL of slow motion videos using PhotoKit

Working with new Photo framework, I can access the NSData of PHAssets using requestImageDataForAsset. I can also access the file …

ios photokit phasset
Can get image from PHAsset of library

I am using QBImagePickerController for selecting multiple images at a time. So, here is my whole code I am presenting …

ios swift phasset
Getting the URL of picture taken by camera with Photos Framework

I have an app that uses a UIImagePickerController to retrieve pictures both from camera and from the photos library. In …

ios uiimagepickercontroller phasset