SDWebViewImageCache is used to share image resourece in native SDImageCache with UIWebView, which is based on SDWebImage.
To run the example project, clone the repo, and run pod install
from the Example directory first.
- SDWebImage
- UIWebview
SDWebViewImageCache is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SDWebViewImageCache'
Register the SDWebViewImageCache, when app launch.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[NSURLProtocol registerClass:[SDWebViewCacheProtocol class]];
return YES;
}
For the same Image in iamgeview and webview, just download one time.
SDWebViewImageCache is available under the MIT license. See the LICENSE file for more info.