Can C style blocks cause memory leaks?

筅森魡賤 提交于 2019-12-05 07:31:22
sergio

One possible explanation for what you are seeing is some caching that UIKit (I assume) is doing of your objects (don't know what they are, but I think of images mostly).

Caching is often used during transitions and for other internalities of UIKit.

UIKit empties its caches usually when a memory warning is received, so you could try and send one to see what happens. In actuality, I suspect that results of sending a memory warning will not be very easy to analyze, since all of your views are also unloaded, hence memory will go down forcibly. But you can try...

As to how sending a memory warning to the device (as opposed to the simulator), here you find an useful S.O. post.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!