views:

99

answers:

2

Hi all,

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

+2  A: 

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];
Charter
Thanks for ur answer i m implementing in my project.
Arun Sharma
+1  A: 

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.

Daniel Blezek
Thanks for ur answer
Arun Sharma