w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to persist large files in caches between updates on iOS?

You should use the /Library/Caches directory for this type of long term storage. Code to get this value:

NSString *directory =
[NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask,
YES) objectAtIndex:0];
directory = [directory stringByAppendingString:@"/Caches"];

I'm pretty sure the contents of this directory will be preserved through app updates. However, if the user deletes the app, the data will be deleted.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.