-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathUUImageCache.h
More file actions
26 lines (20 loc) · 758 Bytes
/
UUImageCache.h
File metadata and controls
26 lines (20 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//
// UUImageCache.h
// Useful Utilities - An easy to use UIImage cache
//
// License:
// You are free to use this code for whatever purposes you desire. The only requirement is that you smile everytime you use it.
//
// Contact: @cheesemaker or jon@threejacks.com
//
// UUImageCache is an extension of UURemoteData that saves a UIImage
// and CGSize in the UURemoteData meta data cache.
@import UIKit;
@interface UUImageCache : NSObject
+ (instancetype) sharedInstance;
// Controls whether UURemoteData will fetch the image from its remote location or
// just look locally in UUDataCache. Defaults to YES
@property (assign) BOOL remoteFetchEnabled;
- (NSValue*) imageSizeForPath:(NSString*)path;
- (UIImage*) imageForPath:(NSString*)path;
@end