__block UIBackgroundTaskIdentifier task=0; task=[application beginBackgroundTaskWithExpirationHandler:^{ NSLog(@"Expiration handler called %f",[application backgroundTimeRemaining]); [application endBackgroundTask:task]; task=UIBackgroundTaskInvalid; }];
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)