Sdwebimage: Setting global cache size

Created on 8 Feb 2017  路  4Comments  路  Source: SDWebImage/SDWebImage

How can we set app image cache size ?

When i try to use "[SDImageCache sharedImageCache].config.maxCacheSize = 65 * 1024 * 1024", i got "[SDImageCache config]: unrecognized selector sent to instance " error

Most helpful comment

I said that i'd already upgraded. Eventually, i modifed podfile and that problem fixed. (adding use_frameworks!)

All 4 comments

@Binusz make sure you are using the 4.0 version of the library.
For an older version, if you cannot upgrade, use [SDImageCache sharedImageCache].maxCacheSize = ...

@bpoplauschi Sorry. it's my fault that i didn't mention which version i use.
Yes, i've already upgraded to 4.0.0

@Binusz Upgrading to 4.0.0 fixed your issue?

I said that i'd already upgraded. Eventually, i modifed podfile and that problem fixed. (adding use_frameworks!)

Was this page helpful?
0 / 5 - 0 ratings