Appel en tâche de fond
- (void)application:(UIApplication *)application
performFetchWithCompletionHandler:
(void (^)(UIBackgroundFetchResult))completionHandler
{
[self.manager GET:@"http://example.com/resources.json"
parameters:nil success:^(id operation, id responseObject) {
completionHandler(UIBackgroundFetchResultNewData);
} failure:^(id operation, NSError *error) {
completionHandler(UIBackgroundFetchResultFailed);
}];
}