现在使用 @2x 图像分配四倍的内存

发布于 2024-09-11 17:13:30 字数 308 浏览 3 评论 0原文

现在,UIImage imageNamed 正在使用 @2x 图像进行 iOS4 的视网膜显示,因此存在一个明显的担忧,即由于图像现在的尺寸是原来的两倍(像素 x 像素),因此它们是内存大小的两倍四倍。

我知道每个人都说过,旧设备的内存限制为 24mb(尽管这个数字根据与您交谈的对象而有很大差异)。您认为 iPhone 4 上允许的内存大小是否相同,或者他们是否也将其提高了?

这可能就是苹果决定将 iPhone 4 的内存增加一倍的原因……:)

Now that UIImage imageNamed is using @2x images for iOS4's retina display, there is an obvious concern that since the images are 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... :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

落花浅忆 2024-09-18 17:13:30

iPhone 4 有 512MB RAM,所以这不是这是一个问题。

实际上,您不应该关心,除非您遇到与内存相关的特定问题。如果你是,那么你可能做错了< /a>. <代码>;)

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. ;)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文