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

Discussion in 'iOS Programming' started by aneuryzma, May 22, 2011.

  1. macrumors newbie

    Joined:
    May 9, 2011
    #1
    How can I load all files from a specific folder with iOS ? (They are images)

    thanks
     
  2. macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #2
    ... 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.
     
  3. aneuryzma, May 22, 2011
    Last edited by a moderator: May 22, 2011

    thread starter macrumors newbie

    Joined:
    May 9, 2011
    #3
    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
     
  4. macrumors 603

    Joined:
    Aug 9, 2009
    #4
    Use the NSFileManager class. It has several methods for Discovering Directory Contents. contentsOfDirectoryAtxxx and enumeratorAtxxx are only two of the naming patterns.
     

Share This Page