Updated code sample to not use deprecated api

This commit is contained in:
Kyle Clegg 2014-09-10 12:51:25 -06:00
parent 11125c4379
commit 013ccba57b
1 changed files with 2 additions and 3 deletions

View File

@ -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];
};