草庐IT

35791394

全部标签

ios - backgroundTimeRemaining 返回(35791394 分钟)?

我在我的应用程序中使用beginBackgroundTaskWithExpirationHandler。我的理解是后台应用程序完成工作的最长时间是10分钟,但是当我打印backgroundTimeRemaining的值时得到的是(35791394分钟)NSTimeIntervaltimeLeft=[UIApplicationsharedApplication].backgroundTimeRemaining;NSLog(@"Backgroundtimeremaining2222:%.0fseconds(%dmins)",timeLeft,(int)timeLeft/60);这是正常的,