홈 버튼을 누르고 응용 프로그램이 백그라운드로 들어가면 이미지를 업로드하고 싶습니다. 가능합니까? 그렇다면 어떻게? 그리고 만약 그렇다면 다른 대안이 있습니까? 당신은 특정 시간 -응용 프로그램이 백그라운드에서 실행될 때 webRequest를 호출 할 수 있습니까?
UIBackgroundTaskIdentifier bgTask = 0;
UIApplication *app = [UIApplication sharedApplication];
bgTask = [app beginBackgroundTaskWithExpirationHandler:^{
[app endBackgroundTask:bgTask];
}];
self.silenceTimer = [NSTimer scheduledTimerWithTimeInterval:10 target:self
selector:@selector(startLocationServices) userInfo:nil repeats:YES];
이 코드를 사용하여 백그라운드에서 작업을 수행 할 수 있습니다
로 이동 http://developer.apple.com/library/ios/#technotes /tn2277/_index.html – Desdenova