Arun Sharma
Arun Sharma

Reputation: 230

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 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

Upvotes: 0

Views: 495

Answers (2)

Daniel Blezek
Daniel Blezek

Reputation: 4549

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.

Upvotes: 1

Charter
Charter

Reputation: 783

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];

Upvotes: 3

Related Questions