有没有办法让 iPhone 应用程序只让用户下载其设备分辨率所需的图形?
我正在开发一款 iPhone 游戏,它的大小接近 20MB。我希望将其控制在 20MB 以下,以便用户可以通过 3G 下载。
主要原因之一是我有所有图像的两份副本,一份用于视网膜显示屏,一份用于非视网膜显示屏分辨率。然而,一半的图像总是完全没有必要的。根据设备的不同,它将使用一种分辨率或另一种分辨率,但绝不会同时使用两种分辨率。
我知道我可以使用高分辨率集并将其缩小到非视网膜显示分辨率,但它们看起来不太好,而且也会影响性能。
有什么方法可以将我的图像分成两组,并且只让用户下载他们需要的组吗?
I'm developing an iPhone game, and it's nearing 20MB in size. I'd like to keep it under 20MB so that users can download it over 3G.
One of the main causes is that I have two copies of all my images, one for Retina Display, and one for non-Retina Display resolutions. However, half the images are always completely unnecessary. Depending on the device it will use one resolution or the other, but never both.
I know I could just use the high-resolution set and scale them down for non-Retina Display resolutions, but they don't look as good and there are performance implications as well.
Is there any way to split my images up into two sets, and only make users download the set they need?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,至少不是以苹果支持的方式。
应用程序包应始终包含所有平台的所有内容。动机之一:用户可能有多个 iOS 设备与同一个 iTunes 库同步。因此,假设我在 iPhone4 上下载了您的应用程序,与 iTunes 同步,然后还通过 iTunes 将其安装在我的第三代非 Retina iPod touch 上。
No. At least not in an Apple-supported manner.
The app bundle shall always contain everything for all platforms. One motivation: The user may have more than one iOS device synchronizing with the same iTunes library. So, say I download your app on my iPhone4, synchronize with iTunes and then also install it on my 3rd gen non-Retina iPod touch from iTunes.
您可以发布两个版本的应用程序吗?然后在每个项目中将另一个项目作为免费的应用内销售提供?或者将两个应用程序捆绑在一起并以相同的价格出售?
Can you release two versions of the App? And then in each offer the other as a free inApp sale? Or bundle the two apps together and sell for the same price as one?