cocoa - IKImageBrowser loads files in reverse order? -


i have ikimagebrowser loads images resources directory located inside app. reason, order loads file in reverse, example have images 1-74, loaded 74-1, ideas?

project based off of ikimagekit demo.

simple , 'ugly' solution:

// file: controllerbrowsing.m: // function: - (void) addimagesfromdirectory:(nsstring *) path  // find: for(i=0; i<n; i++)  // replace with: for(i=n-1; i>=0; i--) 

good solution (one of many possibilities):

  1. create new nsmutablearray.
  2. loop through nsarray contains files.
  3. add paths nsmutablearray.
  4. sort nsmutablearray way like.
  5. loop trough nsmutablearray , add items.

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -