Apples documentation recommends to use pngs when loading images. But if you have a large number, isn’t it possible to conserve memory by using jpegs instead? Or are they internally converted back to png after load so it makes no difference?
Apples documentation recommends to use pngs when loading images. But if you have a
Share
I think the main advantage is that PNGs (especially iPhone PNGs, as generated by
pngcrush -iphoneon Apple’s version of pngcrush) load faster; not that they use less RAM than (say) JPEG.I suspect you’re confusing the term “memory” — it’s usually used to mean RAM. Flash usage is more usually referred to as “disk space” or similar. Apple skips the issue entirely by calling total space “Capacity” and free space “Available”.
The key to using memory efficiently is to not have any memory leaks (use Leaks to find some; it doesn’t catch anywhere near all of them though), and then to free memory in response to a memory warning.