jpg or png for UIImage ― which is more efficient?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 memory. Does it make a difference if I save it as PNG or JPG (assuming I choose note to degrade the quality in the JPG case)? Specifically: is more memory then used by the UIImage after I reload it off of disk if I saved it as a PNG? is it possible the act of saving as PNG uses up more memory transiently during the saving process? I had been assuming the UIImage was