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

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -