How to clear font cache filled with emoji characters?

前端 未结 6 409
日久生厌
日久生厌 2020-12-13 19:52

I am developing keyboard extension for iPhone. There is an emoji screen smilar to Apples own emoji keyboard that shows some 800 emoji characters in UICollectionView

6条回答
  •  天涯浪人
    2020-12-13 19:57

    I am guessing that you are loading the images using [UIImage imageNamed:], or something that derives from it. That will cache the images in the system cache.

    You need to load them using [UIImage imageWithContentsOfFile:] instead. That will bypass the cache.

    (And if that's not the problem, then you'll need to include some code in your question so that we can see what's happening.)

提交回复
热议问题