如果应用程序处于后台模式,则不会发送任何请求
通过一个技巧,如果主页按钮是,就可以运行应用程序 按下。在后台模式下,任何带有 RKRequestQueue 的请求都不会 被发送,因此应用程序没有收到来自 backande 服务器的响应,并且 应用程序无法更新数据。
With a trick it is possible to run the app, if the home button is
pressed. In the background mode, no request with RKRequestQueue will
be send, so the app receive no response from backande server and the
app can't update the data.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是标准行为。当应用程序变为活动状态(即正在运行且不再在后台)时,您可能需要在应用程序委托中实现
-(void)applicationDidBecomeActive:(UIAplication *)application
方法,该方法将在以下位置恢复无论您的情况需要什么,您都可以停止,或者重新提交您的请求,重新启动您的请求队列。This is standard behavior. When the app becomes active (i.e. is running and no longer in the background), you may want to implement the
-(void)applicationDidBecomeActive:(UIAplication *)application
method in your application delegate which would resume where you left off, or to resubmit your request, restart your request queue, whatever your situation requires.