1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

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

Discussion in 'iPhone/iPad Programming' started by aneuryzma, May 22, 2011.

  1. macrumors newbie

    #1
    How can I load all files from a specific folder with iOS ? (They are images)

    thanks
     
  2. macrumors 65816

    jnoxx

    #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

    macrumors newbie

    #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

    #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