ios - Set image in UICollectionViewCell with af_setImageWithURL cost to much memory -
i have memory issue using afi. have uicollectionview
custom cell, , each cell has uiimageview
. in cellforitematindexpath
, set image af_setimagewithurl
.
the problem memory usage getting high. if set cell's image local image, use 27mb memory. when fetch image af_setimagewithurl
, memory usage going 87mb.
so doing mistake?
thank you.
check documentation setimagewithurl,
it cached image locally, keep image in cache memory reusability tableview or collectionview reuse cell, not download image everytime , can use cache memory.
so, may take more memory because of cache think!
Comments
Post a Comment