在我的项目中,我创建了一个将下载文件的方法。当应用程序在前台,我可以使用定时器在应用程序处于后台时调用函数
timer = [NSTimer scheduledTimerWithTimeInterval:10 target:self selector:@selector(download:) userInfo:nil repeats:YES];
调用下载方法但现在我想从applicationDidEnterBackground时调用此函数。 如果应用程序在后台如何每10或15分钟调用一次下载方法?
那是你提供了一个很好的信息。非常感谢。 – Perseus 2012-04-13 07:21:16