alassetslibrary - fetching photos by date - iOS -


disclaimer –i’m new ios , forum too. have need pictures taken in specific dates (let’s january 9-january 12) . don't want go on photos in photo library enhance app performance. looking public api full fill requirement. apple photo framework supports fetching photo collection date? phfetchoptions solution , if right way use ?

you can create predicate specify dates:

phfetchoptions *fetchoptions = [phfetchoptions new];  fetchoptions.predicate = [nspredicate predicatewithformat:@"creationdate > %@ , creationdate < %@", startdate, enddate];  phfetchresult *fetchresult = [phasset fetchassetswithoptions:fetchoptions]; 

Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -