您好我想运行我的应用程序在后台,直到我退出it.For,我已经使用下面要在iPhone上运行的后台程序长时间
bgTask = [application beginBackgroundTaskWithExpirationHandler: ^{
dispatch_async(dispatch_get_main_queue(), ^{
[application endBackgroundTask:bgTask];
bgTask = UIBackgroundTaskInvalid;
});
}];
的代码,但它特别time.Can后退出任何人都可以指导我实现这一目标。
感谢所有......我需要检查背景中每秒钟的时间是否有可能。 – Ann