Is there a way to clear the cache used by UIImage class?

后端 未结 4 1480
闹比i
闹比i 2020-12-06 09:22

It is well known that UIImage caches its image data when the image is loaded using the imageNamed: method.

From apple documentation: https://developer.a

4条回答
  •  半阙折子戏
    2020-12-06 09:32

    The cache will be emptied when it needs to be, i.e. when the application receives a Low Memory Warning. There is no reason for you to do this yourself, and there is no public API available.

提交回复
热议问题