jpg or png for UIImage — which is more efficient?

后端 未结 7 1607
刺人心
刺人心 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条回答
  •  孤城傲影
    2021-02-06 05:03


    I am getting the odd crash, presumably due to out of memory


    Then STOP WHAT YOU ARE DOING RIGHT NOW and first figure out if that's actually the cause of the crash. Otherwise there's a very good chance that you're chasing the wrong problem here, fixing a memory problem that doesn't exist while ignoring the real cause of the crash. If you want to fix a crash, start by figuring out what caused the crash. Following up on what's "presumably" the problem is a recipe for wasted time and effort.

提交回复
热议问题