PDA

View Full Version : iOS: How can I load all files from a specific folder ?




aneuryzma
May 22, 2011, 03:46 AM
How can I load all files from a specific folder with iOS ? (They are images)

thanks



jnoxx
May 22, 2011, 04: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.

aneuryzma
May 22, 2011, 04: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

chown33
May 22, 2011, 12:35 PM
Use the NSFileManager class. It has several methods for Discovering Directory Contents. contentsOfDirectoryAtxxx and enumeratorAtxxx are only two of the naming patterns.