ios - Default SDWebImage cache size -


default cache size of sdwebimage. need both number of files , size of total file can handle.

if search through sdwebimage files on github "maxcachesize" you'll see there's no default value. since it's @property won't initialised garbage numbers, set 0. apple docs:

the alloc method has 1 other important task, clear out memory allocated object’s properties setting them zero. avoids usual problem of memory containing garbage whatever stored before...

so there's no restriction default judging condition in clean code:

if (self.maxcachesize > 0 && currentcachesize > self.maxcachesize) {  //clean code;  } 

afaik there no maximum amount of space application can use either. can eat of available space on device if wish.


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -