0

我试图复制此博客中解释的内容,http://developer.blueearth.net/2011/12/02/quick-tip-clearing-up-ios-multitasking/,它解释了一种运行 NSTimer 的方法背景层出不穷。

问题是10分钟后我得到了这个。

Can't endBackgroundTask: no background task exists with identifier 2b55e8, or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug

然后在应用停止执行 4 分钟后

知道我做错了什么吗?

谢谢

4

1 回答 1

3

2b55e8 听起来不是一个好的标识符,但我可能错了。在我在 iOS 6 上的应用程序中,它们从 1 开始,并通过该错误消息打印为整数,而不是十六进制值。

于 2012-11-15T10:32:36.740 回答