iphone Programming Glossary: diskcapacity
SDURLCache with AFNetworking and offline mode not working http://stackoverflow.com/questions/10250055/sdurlcache-with-afnetworking-and-offline-mode-not-working I have SDURLCache set like this SDURLCache urlCache SDURLCache alloc initWithMemoryCapacity 1024 1024 2 2MB mem cache diskCapacity 1024 1024 15 15MB disk cache diskPath SDURLCache defaultCachePath urlCache setMinCacheInterval 1 NSURLCache setSharedURLCache.. SDURLCache and use the native one Set Cache NSURLCache URLCache NSURLCache alloc initWithMemoryCapacity 4 1024 1024 diskCapacity 20 1024 1024 diskPath nil NSURLCache setSharedURLCache URLCache But remember that in IOS5 https requests wont be cached..
memory leak problem using NSData in iPhone http://stackoverflow.com/questions/1250050/memory-leak-problem-using-nsdata-in-iphone UIApplication application NSURLCache sharedCache NSURLCache alloc initWithMemoryCapacity 0 diskCapacity 0 diskPath nil NSURLCache setSharedURLCache sharedCache sharedCache release window makeKeyAndVisible i could not find any..
How to save the content in UIWebView for faster loading on next launch? http://stackoverflow.com/questions/1343515/how-to-save-the-content-in-uiwebview-for-faster-loading-on-next-launch YES attributes nil error error MyCache cacheMngr MyCache alloc initWithMemoryCapacity 10000 diskCapacity 100000000 diskPath diskCachePath NSURLCache setSharedURLCache cacheMngr This code deserves a lot of cleanup.. but the main..
CFNetwork / NSURLConnection leak http://stackoverflow.com/questions/2439137/cfnetwork-nsurlconnection-leak the following in applicationDidFinishLaunching NSURLCache sharedCache NSURLCache alloc initWithMemoryCapacity 0 diskCapacity 0 diskPath nil NSURLCache setSharedURLCache sharedCache sharedCache release Specified in the urlrequest not to load from..
GeneralBlock-56 memory leak when calling loadRequest in UIWebView http://stackoverflow.com/questions/5470121/generalblock-56-memory-leak-when-calling-loadrequest-in-uiwebview to fiddle around with the NSURLCache settings like so NSURLCache sharedCache NSURLCache alloc initWithMemoryCapacity 0 diskCapacity 0 diskPath nil NSURLCache setSharedURLCache sharedCache sharedCache release This reduces a few of the GeneralBlock memory..
Displaying an Image from URL Objective C http://stackoverflow.com/questions/5577781/displaying-an-image-from-url-objective-c AsyncImageView void initialize NSURLCache setSharedURLCache SDURLCache alloc initWithMemoryCapacity 0 diskCapacity 10 1024 1024 diskPath SDURLCache defaultCachePath void setImageFromURL NSURL url Put activity indicator if activityIndicator..
How do you clear a UIWebView's cache? http://stackoverflow.com/questions/8717115/how-do-you-clear-a-uiwebviews-cache removeAllCachedResponses set an empty cache NSURLCache sharedCache NSURLCache alloc initWithMemoryCapacity 0 diskCapacity 0 diskPath nil NSURLCache setSharedURLCache sharedCache remove the cache for a particular request NSURLCache sharedURLCache..
|