iPhone 3g 和 iPhone 4 分辨率最佳实践
我们的图形人员刚刚给了我我们正在构建的应用程序的切片图像,但他只给了我 960x640 iPhone 4 分辨率。
并建议我可以在运行时将图像缩小为 3g,因此分辨率/图像大小保持不变,但仅以一半大小显示。
问题:提交到应用程序商店时是否允许这样做,或者是否需要例如:
[电子邮件受保护] (460x640) - iPhone 4
IMAGE1.PNG (230x320) - iPhone 3g
适用于所有图像。
我可能只是进行批量转换,并为所有图像设置两种分辨率,以节省最大空间。
Our graphics guy just gave me the sliced images for an Application we're building, but he only gave me the resolution for the 960x640 iPhone 4 res.
And advised that I can just scale the images down for 3g at runtime, so the resolution/image size remains the same but it's just displayed at half size.
The question: Is this allowed when submitting to the app store, or is it a requirement to have for example:
[email protected] (460x640) - iPhone 4
IMAGE1.PNG (230x320) - iPhone 3g
For all images.
I might just do the batch conversion and have two resolutions for all images, to save maximum space.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
发布评论
评论(3)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
这是允许的,但显然,图像在旧设备上占用的 RAM 是旧设备上的四倍,像素也是旧设备的四倍。 iPhone 4 拥有 512mb 内存,而 3G 版和初代只有 128mb。尽管假设您正确处理内存警告并且所有内容仍然适合,但主要的副作用将是每当清除内容并稍后从磁盘重新加载时出现性能问题(我确信您知道,会自动处理以供查看) NIB 中的控制器)。根据经验观察,3GS 之前的设备上的闪存比后来的设备慢很多,因此即使您坚持使用大图像,尝试最小化磁盘大小也是有意义的。
That's allowed, but obviously the images will occupy four times as much RAM on the older devices than they otherwise would, having four times the pixels. While the iPhone 4 has 512mb of RAM, the 3G and the original have just 128mb. Though assuming you are dealing with memory warnings correctly and everything will still fit, the main side effect will be performance issues whenever things are purged and later reloaded from disk (which, as I'm sure you're aware, is handled automatically for view controllers in NIBs). Based on empirical observations, the flash memory on pre-3GS devices is a lot slower than the later stuff so even if you're sticking with the large images it would make sense to attempt to minimise on-disk size.