Skip to content

Commit 013ccba

Browse files
committed
Updated code sample to not use deprecated api
1 parent 11125c4 commit 013ccba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,8 @@ the URL before to use it as a cache key:
177177
```objective-c
178178
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
179179
{
180-
SDWebImageManager.sharedManager.cacheKeyFilter:^(NSURL *url)
181-
{
182-
url = [[[NSURL alloc] initWithScheme:url.scheme host:url.host path:url.path] autorelease];
180+
SDWebImageManager.sharedManager.cacheKeyFilter = ^(NSURL *url) {
181+
url = [[NSURL alloc] initWithScheme:url.scheme host:url.host path:url.path];
183182
return [url absoluteString];
184183
};
185184

0 commit comments

Comments
 (0)