iOS:Remove dependency of YYCache,add support for YYCache,TMCache,or PINCache

This commit is contained in:
pengfeizhou
2021-01-29 18:03:02 +08:00
committed by osborn
parent 4c78a91f7a
commit c74ceefc42
4 changed files with 122 additions and 15 deletions

View File

@@ -9,9 +9,10 @@
#import "AppDelegate.h"
#import "NavigationController.h"
#import "ViewController.h"
#if __has_include(<SDWebImage/SDWebImage.h>)
#import <SDWebImage/SDWebImage.h>
#import <SDWebImageWebPCoder/SDWebImageWebPCoder.h>
#endif
@interface AppDelegate ()
@property(nonatomic, strong) UIViewController *rootVC;
@property(nonatomic, strong) NavigationController *navigationController;
@@ -30,7 +31,9 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
self.window.rootViewController = self.navigationController;
[self.window addSubview:self.navigationController.view];
[self.window makeKeyAndVisible];
#if __has_include(<SDWebImage/SDWebImage.h>)
[SDImageCodersManager.sharedManager addCoder:SDImageWebPCoder.sharedCoder];
#endif
return YES;
}