how to use nsdocuments directory for downloads in iphone

后端 未结 3 1989
情深已故
情深已故 2021-01-27 06:31

I have an iphone app with downloads option and iam using nsdocument directory path for downloading.but after the download how can i get to access the documents path in iphone.

相关标签:
3条回答
  • 2021-01-27 06:49

    You can access the folder using iExplorer application on Mac OS X. You can also access it through Xcode on your test device by doing this:

    Go to Xcode > Window > Organizer > Devices

    On the window, select the app you want to check and you can see the directories:

    enter image description here

    You can download the whole directory to access the items in it.

    0 讨论(0)
  • 2021-01-27 06:54

    How to display all images from NSDocument directory check this link and if you want access the app file than check this download it
    http://download.cnet.com/iExplorer/3000-2141_4-10969335.html

    0 讨论(0)
  • 2021-01-27 06:56

    //NSDownloadsDirectory = For Download folder

    //NSDocumentDirectory = For Document folder

        NSArray *pathArr = NSSearchPathForDirectoriesInDomains(NSDownloadsDirectory , NSUserDomainMask, YES);
        NSString *downloadsDir = [paths objectAtIndex:0];
    
    Store the content to this path(you can create a folder in it too.). And also fetch the files stored in this folder, by enumerating to the files in this directory
    
    0 讨论(0)
提交回复
热议问题