Skip to content

Instantly share code, notes, and snippets.

@mkll
Created March 29, 2014 13:40
Show Gist options
  • Save mkll/9854657 to your computer and use it in GitHub Desktop.
Save mkll/9854657 to your computer and use it in GitHub Desktop.
How to get filesystem path to image cached by SDWebImage? There are private SDImageCache methods, so just make these methods public with category. Add the file below to your project.
#import "SDImageCache.h"
@interface SDImageCache (PrivateMethods)
- (NSString *)defaultCachePathForKey:(NSString *)key;
- (NSString *)cachedFileNameForKey:(NSString *)key;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment