ios - PHAsset fetchAssetsWithLocalIdentifiers returning assetFetchResults in localIdentifier order -


i cannot find issue addressed in apple documentation, apple forums, or stackoverflow. have attempted create code , @ results various options.

it appears if sort descriptor not provided call [phasset fetchassetswithlocalidentifiers] returns assets in local identifier order. using technique of passing "nil" options, can replicate sort order of existing phasset collections.

    self.assetsfetchresults = [phasset fetchassetswithlocalidentifiers:self.selectionlist options:nil]; 

in developer documentation, cannot find option sort descriptor phasset override default action meet needs. loading assetsfetchresults transientassetcollection limits addition , deletion of assets (per apple documentation).

    self.assetcollection = [phassetcollection transientassetcollectionwithassetfetchresult:self.assetsfetchresults title:self.albumname]; 

is there way fetchassetswithlocalidentifiers return assets in order of local identifiers in array supplied on call? if call return assets in order array in, app control results...

is there missed in documentation?

thank you, tony

update: have tried coding sort selector fetchassetswithlocalidentifiers override sorting of fetch results. but, thought apple documentation indicates "localidentifier" valid key phassets, program fails due invalid sort key.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -