ios - Fetching documents sorted by date dynamically. To be used for lazy loading -
i know can sort files after have fetched using array of paths documents.
nsarray *paths = nssearchpathfordirectoriesindomains(nsdocumentdirectory, nsuserdomainmask, yes); nsstring *documentsdirectory = [paths objectatindex:0]; _filepaths = [[nsfilemanager defaultmanager] subpathsofdirectoryatpath:documentsdirectory error:nil]; //do sorting after file contents fetched what want know: possible fetch file paths sorted (e.g. date, or whatever attribute)? because don't want load files @ once perform sort on long list definite number of files use lazy loading.
Comments
Post a Comment