Now allocating four times the memory with @2x images
Now that UIImage imageNamed
is using @2x
images for iOS4's retina display, there is an obvious concern that since the images are 开发者_Python百科now twice the size (pixels x pixels), that they will also be twice four times the size in memory.
I know everyone stated something like you have a limit of 24mb in memory for the old devices (even though that number varied a lot depending on who you talked to). Do you think the allowable size in memory is the same on the iPhone 4, or have they maybe bumped this up as well?
That's probably why Apple decided to double the memory of the iPhone 4... :)
The iPhone 4 has 512MB RAM, so this isn't an issue.
Really, you shouldn't care, unless you are having specific problems related to memory. And if you are, it's likely you're doing it wrong. ;)
精彩评论