Skip to content

Commit

Permalink
Added key specification information to Readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed Aug 2, 2012
1 parent be97eac commit e27cdc3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ Request an image like so:
}];
```

If you need more control all the methods allow to specify the key of an image.
This can be used to keep track of different images associated with the same url (e.g. different border radius).
This can also be used to access an image that might have been downloaded in situations where the url is not readily available.

``` objective-c
[cell.imageView setImageWithURL:urlWhichMightBeNil
key:@"$ImageKey"
placeholder:[UIImage imageNamed:@"placeholder.png"]];
```
## Clearing The Cache
The beauty of building on top of `NSCache` is that` JMImageCache` handles low memory situations gracefully. It will evict objects on its own when memory gets tight, you don't need to worry about it.
Expand Down

0 comments on commit e27cdc3

Please sign in to comment.