开发者

How to remove subviews to release more memory

开发者 https://www.devze.com 2022-12-23 15:01 出处:网络
I have UIScro开发者_C百科llView with number of subviews. Each subview is custom UIButton with UIImage. When I load more and more subviews, more and more memory is used. But I remove invisible subviews

I have UIScro开发者_C百科llView with number of subviews. Each subview is custom UIButton with UIImage. When I load more and more subviews, more and more memory is used. But I remove invisible subviews by removeFromSuperView method. Subviews are removed and stay invisible, but Im afraid that no memory is released. UIImage is image downloaded from internet. Thanx for help.


use clear cache concept for this. for more https://github.com/thest1/LazyList.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号