iOS:update SDWebImage API call

This commit is contained in:
pengfeizhou
2021-01-29 10:27:28 +08:00
committed by osborn
parent 4ad278e9c9
commit 4c78a91f7a
3 changed files with 211 additions and 43 deletions

View File

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