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 -

amazon web services - Installing MobileFirst 7.0 server on AWS -

Non Unique Username with ASP.Net Identity 2.0 -