jpg or png for UIImage — which is more efficient?

后端 未结 7 1615
刺人心
刺人心 2021-02-06 04:35

I am grabbing an image from the camera roll and then using it for a while as well as save it to disk as a PNG on the iPhone. I am getting the odd crash, presumably due to out of

7条回答
  •  梦毁少年i
    2021-02-06 05:09

    Use PNG wherever possible. As part of the compilation XCode runs all PNG files through a utility (pngcrush) to compress and optimize them.

提交回复
热议问题