Most memory efficient way to save a photo to disk on iPhone?

前端 未结 3 625
耶瑟儿~
耶瑟儿~ 2020-12-28 18:31

From profiling with Instruments I have learned that the way I am saving images to disk is resulting in memory spikes to ~60MB. This results in the

3条回答
  •  情歌与酒
    2020-12-28 18:47

    Try to use NSAutoReleasePool and drain the pool once u finish writing the data.

提交回复
热议问题