Updated code sample to not use deprecated api
This commit is contained in:
parent
11125c4379
commit
013ccba57b
|
@ -177,9 +177,8 @@ the URL before to use it as a cache key:
|
|||
```objective-c
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||
{
|
||||
SDWebImageManager.sharedManager.cacheKeyFilter:^(NSURL *url)
|
||||
{
|
||||
url = [[[NSURL alloc] initWithScheme:url.scheme host:url.host path:url.path] autorelease];
|
||||
SDWebImageManager.sharedManager.cacheKeyFilter = ^(NSURL *url) {
|
||||
url = [[NSURL alloc] initWithScheme:url.scheme host:url.host path:url.path];
|
||||
return [url absoluteString];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue