【发布时间】:2012-03-01 18:18:10
【问题描述】:
我在我的应用程序中使用 beginBackgroundTaskWithExpirationHandler。我理解后台应用程序完成工作的最长时间是 10 分钟,但是当我打印 backgroundTimeRemaining 的值时得到的是(35791394 分钟)
NSTimeInterval timeLeft = [UIApplication sharedApplication].backgroundTimeRemaining;
NSLog(@"Background time remaining2222: %.0f seconds (%d mins)", timeLeft, (int)timeLeft / 60);
这是正常的,还是我做错了什么?!
【问题讨论】: