Is it possible to use PVRTVC textures in UIImages?

I am having problems with a lot of UIImages in memory, so I was wondering if there is a way to use PVRTC images instead of PNG in UIImages.

+3
source share
1 answer

No, it is limited to the OpenGL domain.

One of the methods I've used in the past is to save compressed PNGs in memory. Like NSDatainstances. And then unzip them on request using the method UIImage imageWithData:.

However, this depends on the "complexity" of your images. In my case, the images were "simple" and led to high performance.

Github:

http://github.com/st3fan/iphone-animation

, . ( , ), PNG.

+2

Source: https://habr.com/ru/post/1736926/


All Articles