Search code examples
iosobjective-cios9phasset

Is it possible to retrieve photo by its name using predicate in Obj-C?


I wonder if it is possible to retrieve a photo from photo album using predicate in Obj-C with PHAsset Library?

I ask this question because I don't want to browse the entire album to retrieve only one photo.

Thanks.


Solution

  • What do you mean with "name"? You can filter photos/videos by the local identifier and other properties like width, height, mediaType. But there is no name or title property for a PHAsset.