开发者

Download content of app at download of application

My problem is that my application size is very high. so i want that user download application and when required content then content开发者_JS百科 is downloaded in user iphone memory. and if one time downloaded content then user never required to download content again and again.

is it possible?

please tell me if any reference.

Thanks,

Arun


You can download any needed medias in your app document folder.

You can get it's URL that way :

  [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"]

or

NSString *homeDir = NSHomeDirectory();
NSArray *arrayPaths = 
    NSSearchPathForDirectoriesInDomains(
        NSDocumentDirectory,
        NSUserDomainMask,
        YES);

NSString *docDir = [arrayPaths objectAtIndex:0];


You could try out this answer. Basically, you store all your content in a directory. If the directory exists, do nothing. Else, download a zip file and unzip the contents into the directory. It's all detailed in the link above.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜