我查到一个方法叫SpriteFrameCache->getInstance()->removeSpriteFrames(),相比其他的remove系列方法,这个从名字上看起来是最贴近删除所有缓存的方法了。
不过我看了它的描述以后,产生了疑惑,描述如下:
Call this method if you receive the “Memory Warning”. In the short term: it will free some resources preventing your app from being killed. In the medium term: it will allocate more resources. In the long term: it will be the same.
从描述看,这个方法并不像是清空所有缓存用的。那么,怎么才能清空所有SpriteFrameCache中的缓存呢?
怎么删除 所有动画缓存
我不知道 这个 有没有效果。。。