Last active
December 17, 2015 19:30
-
-
Save nickjshearer/5661308 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
// Create a 4MB in-memory, 32MB disk cache | |
NSURLCache *cache = [[NSURLCache alloc] initWithMemoryCapacity:4*1024*1024 | |
diskCapacity:32*1024*1024 | |
diskPath:@"app_cache"]; | |
// Set the shared cache to our new instance | |
[NSURLCache setSharedURLCache:cache]; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment