View Full Version : iOS: How can I load all files from a specific folder ?
May 22, 2011, 04:46 AM
How can I load all files from a specific folder with iOS ? (They are images)
May 22, 2011, 05:09 AM
... Load from where, to where, in your app, in xcode? u downloaded them over data to your documents directy? your not really giving us much to go on.
May 22, 2011, 05:10 AM
Yes, I need to know how to add them to the "Products" group and not other folders because I need to load them from my code in runtime
And of course I need to know the code to load all files from a folder name, and not just a file given the filename
May 22, 2011, 01:35 PM
Use the NSFileManager class. It has several methods for Discovering Directory Contents. contentsOfDirectoryAtxxx and enumeratorAtxxx are only two of the naming patterns.