简体   繁体   English

长时间保持打开状态的ios应用无响应

[英]ios app kept open for long time becomes unresponsive

I have a ios application which have timers running and shown on the uilabels. 我有一个ios应用程序,该应用程序运行计时器并在uilabels上显示。 This app will ideally run for long durations eg: 12 - 14 hours but there will be user interactions in between frequently. 理想情况下,该应用可以长时间运行,例如:12-14小时,但是之间经常会有用户交互。 For testing i started the application and the timer on screen started, i left it for 7 hours without touching it (i have configured the screen not to get off) and the app was in the foreground running. 为了进行测试,我启动了该应用程序,并且屏幕上的计时器启动了,我将其放置了7个小时而没有触摸它(我将屏幕配置为不关闭),并且该应用程序处于前台运行状态。 But after 7 hours when i clicked on another button or did any other activity the application behaved in a weird way and on some occasions it became unresponsive. 但是在7个小时后,当我单击另一个按钮或进行任何其他活动时,该应用程序的行为异常,有时甚至无法响应。

I wanted to know if there is a time ( say 3 - 4 hours the app sitting ideal in foreground ) after which the app may/will behave in an unresponsive manner. 我想知道是否有一段时间(例如,将应用理想地放置在前景中3到4个小时),之后该应用可能/将以无响应的方式运行。

Perhaps you have a memory leak? 也许您有内存泄漏? You can use Instruments to check 您可以使用乐器来检查

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM