-
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ | |
9B1415261EE02EF600173BB9 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 9B1415251EE02EF600173BB9 /* [email protected] */; }; | ||
9B1415281EE02F0C00173BB9 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 9B1415271EE02F0C00173BB9 /* [email protected] */; }; | ||
9B14152A1EE02F1A00173BB9 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 9B1415291EE02F1A00173BB9 /* [email protected] */; }; | ||
9B5711B12C8B208500093AE9 /* LEEThemeImageCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 9B5711B02C8B208500093AE9 /* LEEThemeImageCache.m */; }; | ||
9B7873E51E7A3F4A00D4151A /* UITableView+SDAutoTableViewCellHeight.m in Sources */ = {isa = PBXBuildFile; fileRef = 9B7873301E7A3F4A00D4151A /* UITableView+SDAutoTableViewCellHeight.m */; }; | ||
9B7873E61E7A3F4A00D4151A /* UIView+SDAutoLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 9B7873321E7A3F4A00D4151A /* UIView+SDAutoLayout.m */; }; | ||
9B7875071E7A5AF800D4151A /* UINavigationController+FDFullscreenPopGesture.m in Sources */ = {isa = PBXBuildFile; fileRef = 9B7875061E7A5AF800D4151A /* UINavigationController+FDFullscreenPopGesture.m */; }; | ||
|
@@ -445,6 +446,8 @@ | |
9B1415251EE02EF600173BB9 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; }; | ||
9B1415271EE02F0C00173BB9 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; }; | ||
9B1415291EE02F1A00173BB9 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; }; | ||
9B5711AF2C8B208500093AE9 /* LEEThemeImageCache.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LEEThemeImageCache.h; sourceTree = "<group>"; }; | ||
9B5711B02C8B208500093AE9 /* LEEThemeImageCache.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LEEThemeImageCache.m; sourceTree = "<group>"; }; | ||
9B78732E1E7A3F4A00D4151A /* SDAutoLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDAutoLayout.h; sourceTree = "<group>"; }; | ||
9B78732F1E7A3F4A00D4151A /* UITableView+SDAutoTableViewCellHeight.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UITableView+SDAutoTableViewCellHeight.h"; sourceTree = "<group>"; }; | ||
9B7873301E7A3F4A00D4151A /* UITableView+SDAutoTableViewCellHeight.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UITableView+SDAutoTableViewCellHeight.m"; sourceTree = "<group>"; }; | ||
|
@@ -2444,6 +2447,8 @@ | |
9B9712C71EC42C1C00C1CB79 /* LEETheme.h */, | ||
9B9712C81EC42C1C00C1CB79 /* LEETheme.m */, | ||
9B1081321F42CBA400D3A7E2 /* LEEThemeHelper.h */, | ||
9B5711AF2C8B208500093AE9 /* LEEThemeImageCache.h */, | ||
9B5711B02C8B208500093AE9 /* LEEThemeImageCache.m */, | ||
); | ||
name = LEETheme; | ||
path = ../../LEETheme; | ||
|
@@ -2969,6 +2974,7 @@ | |
9B78781C1E7B8BCF00D4151A /* CommunityPostCellPhotosView.m in Sources */, | ||
9B7879711E7B92DE00D4151A /* YYRootViewController.m in Sources */, | ||
9B7876631E7A739200D4151A /* YYImageCache.m in Sources */, | ||
9B5711B12C8B208500093AE9 /* LEEThemeImageCache.m in Sources */, | ||
9B78763A1E7A739200D4151A /* NSBundle+YYAdd.m in Sources */, | ||
9B7878211E7B8BCF00D4151A /* CommunityCircleDetailsViewController.m in Sources */, | ||
9B7876441E7A739200D4151A /* NSString+YYAdd.m in Sources */, | ||
|
@@ -3197,7 +3203,7 @@ | |
); | ||
GCC_PREFIX_HEADER = "$(SRCROOT)/LEEThemeDemo/PrefixHeader.pch"; | ||
INFOPLIST_FILE = LEEThemeDemo/Info.plist; | ||
IPHONEOS_DEPLOYMENT_TARGET = 8.0; | ||
IPHONEOS_DEPLOYMENT_TARGET = 12.0; | ||
LD_RUNPATH_SEARCH_PATHS = ( | ||
"$(inherited)", | ||
"@executable_path/Frameworks", | ||
|
@@ -3226,7 +3232,7 @@ | |
); | ||
GCC_PREFIX_HEADER = "$(SRCROOT)/LEEThemeDemo/PrefixHeader.pch"; | ||
INFOPLIST_FILE = LEEThemeDemo/Info.plist; | ||
IPHONEOS_DEPLOYMENT_TARGET = 8.0; | ||
IPHONEOS_DEPLOYMENT_TARGET = 12.0; | ||
LD_RUNPATH_SEARCH_PATHS = ( | ||
"$(inherited)", | ||
"@executable_path/Frameworks", | ||
|
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 | ||
============== | ||
添加隐私清单 | ||
|