Monday, July 8, 2013

App executing tasks in background +iPhone


-(void) applicationDidEnterBackground:(UIApplication*)application {
    
    UIApplication *app = [UIApplication sharedApplication];
    UIBackgroundTaskIdentifier bgTask = 0;
    bgTask = [app beginBackgroundTaskWithExpirationHandler:^{
        [app endBackgroundTask:bgTask];
    }];
}

No comments:

Post a Comment