ios - Why PHAsset fetchAssetsWithOptions doesn't return all assets? -


there 75 photos in photo stream , 1 photo in camera roll(not in photo stream). totally have 76 photos. follow code returns 51 photos:

    phfetchoptions *options = [[phfetchoptions alloc] init];     options.sortdescriptors = @[[nssortdescriptor sortdescriptorwithkey:@"creationdate" ascending:yes]];     assetsfetchresults = [phasset fetchassetswithoptions:options]; 

i know:

if method called app linked on or after ios 8.1, results not include photos synchronized device itunes or photos stored in icloud shared photo stream.

but none of photos above icloud shared photo stream.

not beautiful, try following assets:

  nsmutablearray *_assets = [nsmutablearray new];    phfetchresult *fr = [phassetcollection fetchmomentswithoptions:nil];   (phassetcollection *collection in fr) {       phfetchresult *_fr = [phasset fetchassetsinassetcollection:collection options:nil];      (phasset *asset in _fr) {          [_assets addobject:asset];      }   } 

Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -