ayushgoel / AGEmojiKeyboard

Emoji Keyboard for iOS
MIT License
692 stars 175 forks source link

Memory Usage #7

Open ghost opened 9 years ago

ghost commented 9 years ago

Hi,

Tapping on each segment increases the app memory usage. Also, scrolling through pages increases the memory usage and this memory is never released. You could reach to about 40 MB which leads to crash on a real device. I've tested the example on an iPad Air and it crashes when I scroll on some pages. Is there a way to fix this? I can't find the leak. The instruments shows allocations related to CFString etc.

n-studio commented 9 years ago

I looks like an issue coming from iOS itself. It's not really a leak, just iOS keeping in cache all the emoji images.

Using one's own .png files instead of iOS's ones is the only way I found to solve this issue. It raises licence issues, but well...

http://stackoverflow.com/questions/31151027/how-to-clear-font-cache-filled-with-emoji-characters/31237110#31237110