Help, how can I get a listing of directories?

Discussion in 'iOS Programming' started by mkozz28, Jan 23, 2012.

  1. mkozz28 macrumors newbie

    Joined:
    Jan 23, 2012
    #1
    Hi,

    I would like to build a file browser, where I tell the IPAD to look in this folder and show me the directories and files in it. Any ideas on how I can accomplish this?

    Thanks
     
  2. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #2
    Unless I'm mistaken, you can't.

    Apps in iOS are sandboxed so that they may only access their own directories (and a few select directories that the system allows apps to share amoungst each other, like the camera roll.)
     
  3. KnightWRX macrumors Pentium

    KnightWRX

    Joined:
    Jan 28, 2009
    Location:
    Quebec, Canada
    #3
    Look into what iOS's implementation of NSFileManager lets you do :

    http://developer.apple.com/library/.../NSFileManager_Class/Reference/Reference.html

     
  4. mkozz28 thread starter macrumors newbie

    Joined:
    Jan 23, 2012
    #4
  5. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #5
    Look at the class reference page. Where it says "Related sample code".
     

Share This Page