-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8da92fb
commit e858b2f
Showing
9 changed files
with
156 additions
and
30 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* @header LEEThemeImageCache.h | ||
* | ||
* ┌─┐ ┌───────┐ ┌───────┐ | ||
* │ │ │ ┌─────┘ │ ┌─────┘ | ||
* │ │ │ └─────┐ │ └─────┐ | ||
* │ │ │ ┌─────┘ │ ┌─────┘ | ||
* │ └─────┐│ └─────┐ │ └─────┐ | ||
* └───────┘└───────┘ └───────┘ | ||
* | ||
* @brief LEE主题管理 | ||
* | ||
* @author LEE | ||
* @copyright Copyright © 2016 - 2024年 lee. All rights reserved. | ||
* @version V1.2.2 | ||
*/ | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface LEEThemeImageCache : NSObject | ||
|
||
- (UIImage *)getImageWithKey:(NSString *)key; | ||
|
||
- (void)setImage:(UIImage *)image withKey:(NSString *)key; | ||
|
||
- (void)clean; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* @header LEEThemeImageCache.m | ||
* | ||
* ┌─┐ ┌───────┐ ┌───────┐ | ||
* │ │ │ ┌─────┘ │ ┌─────┘ | ||
* │ │ │ └─────┐ │ └─────┐ | ||
* │ │ │ ┌─────┘ │ ┌─────┘ | ||
* │ └─────┐│ └─────┐ │ └─────┐ | ||
* └───────┘└───────┘ └───────┘ | ||
* | ||
* @brief LEE主题管理 | ||
* | ||
* @author LEE | ||
* @copyright Copyright © 2016 - 2024年 lee. All rights reserved. | ||
* @version V1.2.2 | ||
*/ | ||
|
||
#import "LEEThemeImageCache.h" | ||
|
||
@interface LEEThemeImageCache () | ||
|
||
@property (nonatomic , strong ) NSMutableDictionary *cache; | ||
|
||
@end | ||
|
||
@implementation LEEThemeImageCache | ||
|
||
- (instancetype)init | ||
{ | ||
self = [super init]; | ||
if (self) { | ||
_cache = [NSMutableDictionary dictionary]; | ||
} | ||
return self; | ||
} | ||
|
||
- (UIImage *)getImageWithKey:(NSString *)key { | ||
return self.cache[key]; | ||
} | ||
|
||
- (void)setImage:(UIImage *)image withKey:(NSString *)key { | ||
self.cache[key] = image; | ||
} | ||
|
||
- (void)clean { | ||
[self.cache removeAllObjects]; | ||
} | ||
|
||
@end |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
|
||
# LEETheme - 更新日志 | ||
|
||
V1.2.2 | ||
============== | ||
增加图片缓存 | ||
|
||
V1.2.1 | ||
============== | ||
添加隐私清单 | ||
|