分享的时间启动关闭iphone应用程序 [英] Alloted times for startup shutdown of iphone apps

查看:85
本文介绍了分享的时间启动关闭iphone应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

启动和关闭iphone应用程序(以及可能的其他重要例程)需要多少时间。

How much time is given to the startup and shutdown of an iphone app (and possibly other important routines). I have had programs killed on my iphone by the OS which was overzealous?

推荐答案

iPhone上的看门狗定时器终止您的应用程序if它已经没有响应20秒。请注意,Xcode在调试时会禁用看门狗定时器,因此可能需要在Xcode外部的硬件上进行测试,以确保您的应用程序确实运行。但是,如果你的应用程序阻塞主线程的任何地方接近20秒,它的设计有一些严重的错误。

The watchdog timer on the iPhone terminates your application if it has been unresponsive for 20 seconds. Note that Xcode disables the watchdog timer when debugging, so you may need to test on the hardware outside of Xcode to make sure that your application will indeed run. However, if your application is blocking the main thread for anywhere near 20 seconds, there's something seriously wrong in its design.

这篇关于分享的时间启动关闭iphone应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆