English 中文(简体)
在哪里下载文件?
原标题:Where file downloads in iPhone?

如果能够从我的习惯应用中下载Pi的文档,那么,如果能够重新开始我的工作,那么它会节省档案,以及如何事先获得下载的档案清单? 是否像Windows 电话7一样有名称的存储或全球储存?

最佳回答

It is your responsibility as a developer to save the file in the folder you like.

但是,你只能节省档案,在你可应用的道路上创造文件夹:

+ (NSString*) applicationWriteablePath                                                                                     
{                                                                                                                       
    NSArray *aPaths         = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);          
    NSString *aWritablePath = [aPaths objectAtIndex:0];                                                                 

    return aWritablePath;                                                                                               
}

然后,你可以通过使用NSFileManager来挽救档案。 请参看Apple Documentation,以创建你的文件夹,并相应地保存你的档案。

问题回答

你们可以把用户档案保存在你们的文件夹中。 你们可以找到一条通往你们的文件的绝对道路:

`NSString *docDir = [NSHomeDirectory() stringByAppendingPathComponent: @"Documents"];`

届时,你们需要使“分享”档案能够列入你们的申请信息清单。

为了在MacOS X或Windows之间转播档案,无论是用USB电缆调取你的装置,还是发射架,在左边的名单上点击你的装置的icon,点击右侧的应用表,然后把所有途径推到底部,然后点击你的应用icon。 您的“icon”权箱将把所有档案列入您的文件夹。 有一些州可以将档案退回或移交。

This is how my App Warp Life deals with user documents, but I find it to be a huge PITA to have to use iTunes for this, and that it only works if my device is tethered - it won t work via wireless or BlueTooth. The UI for file transfer in iTunes is really clunky and hard-to-find for users who aren t incredibly clueful.

For that reason I am contemplating implementing some other way to transfer files. One way would be to run a small HTTP server within my App that would have just a single page listing the files, that could be downloaded by clicking their links, with a simple form for uploading files to the user s device.

这不仅会无线地工作,而且会与任何业务系统合作。 我完全相信,我的很多目标用户都跑到了Lino,如果有人要求把一个束缚器用于混淆一个装置,那么就将拖到一个窗子或MacOS X。

我从未研究过这个问题,但是,在由 Apple果提供的电子图书中,都说,每 app在档案系统中都有自己的份额。

如果你决定下载到你手中,不管你下载什么地方。

如欲了解更多信息,请上查询:Important Application Directories





相关问题
How to upload and download file from a server using C#

I am developing a webpage in that the user can download their Resume for Edit. So I have a link to download the article. I use the following code for download. DataTable dt = user.getUserDetails(2); ...

Detecting PDF Download

I have recently added functionality for generating pdf reports to a web application. However the reports can be quite large and take some time to show the pdf download dialog. I want to show a spinner ...

Writing file to users giving sporadic error in IE

I have a very interesting issue with only specific IE implementations. I have an ASPX page that is used to write files down to the user, as part of the process the page uses the following code to ...

PHP - List of Excel files to download from Intranet Site?

I have a intranet site running PHP 5 that needs to list a folder containing only Excel files. Ideally the user needs to be able to input some search criteria (ie date) and the files would be filtered ...

Determine total size of SVN directory/trunk

Is there a way to count/calculate the total size of a svn directory if you were to checkout a revision? I have limited internet downloads so I need to know how big something is before I go and ...

Scala and html: download an image (*.jpg, etc) to Hard drive

I ve got a Scala program that downloads and parses html. I got the links to the image files form the html, Now I need to transfer those images to my hard drive. I m wondering what the best Scala ...

Downloading file with wxHTTP?

Im really stumped. Im using the wxHTTP class in wxWidgets to try and download two files. The first request succeeds but the second one fails when wxHTTP->GetInputStream is called. Between downloads, ...

热门标签