iPhone 应用程序启动时间指南

发布于 2024-08-27 17:11:59 字数 1539 浏览 9 评论 0原文

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

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

发布评论

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

评论(2

蓝咒 2024-09-03 17:11:59

来自 iPhone 应用程序编程指南

我认为您不会在文档中找到任何数字限制。苹果公司对这些事情一直含糊其辞是有原因的。他们不想出来说“不允许启动时间超过 x 秒的应用程序”。仅当您的应用程序的启动时间太长以至于根本不可接受/无法使用时,它才可能被应用程序商店拒绝。我不确定 24 秒这个数字从何而来,但也许这就是苹果在应用商店批准的自动测试中使用的。

苹果的立场很简单:“你的应用程序的启动时间应该尽可能短。如果你的应用程序需要很长时间才能启动,用户将不太愿意使用它,这只会阻碍你的应用程序的成功。”对我来说似乎很合理。

From the iPhone Application Programming Guide

I don't think you will find any numeric limits in the documentation. Apple has been vague about that stuff for a reason. They don't want to come out and say that "apps that have a launch time greater than x seconds are not allowed". Your app may only get rejected from the App store if it's launch time was so long that it was simply unacceptable/unusable. I'm not sure where the 24 seconds number came from, but perhaps that is what Apple uses in it's automated testing for App store approval.

Apple's stance is simply: "Your app's launch time should be as short as possible. If your app takes a long time to launch, users will be less inclined to use it, which will only hinder your app's success." Seems pretty reasonable to me.

巷雨优美回忆 2024-09-03 17:11:59

在 WWDC 2012 第 235 场“每次应用发布都给人留下深刻印象”中,苹果表示启动时间限制为20秒。这并不像 CJ 所说的那样是硬性规定,可能会在未来的 iOS 版本中改变。

建议应用程序应在启动动画时间内启动,以便向用户显示已立即启动。 iPhone 上的启动动画时间为 400 毫秒,iPad 上的启动动画时间为 500 毫秒。您确实应该将启动时间设定为非常接近此时间。 WWDC 2012 第 225 场“启动并运行:每次发布都给人留下深刻印象” 给出了很多关于如何实现这一目标的好主意。

为了给用户提供他们想要的体验,你真的不应该接近你所遇到的看门狗超时。

In WWDC 2012 Session 235 "Making a Great Impression With Every App Launch", Apple indicates that the launch time limit is 20 seconds. This is not a hard and fast rule as CJ says and could be changed in a future iOS release.

It's advised that the app should aim to launch within the launch animation time in order to appear to the user as having launched instantaneously. The launch animation times are 400ms on the iPhone and 500ms on the iPad. You should really be aiming for a launch time very close to this. WWDC 2012 Session 225 "Up and Running: Making a Great Impression with Every Launch" gives a lot of good ideas as to how you can achieve this.

You really shouldn't be anywhere near the watchdog timeout you're hitting in order to give users the experience they're after.

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