我试图复制此博客中解释的内容,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 分钟后
知道我做错了什么吗?
谢谢