In my project I have created a Method which will download the files. When the application is in foreground I can call that download method using the timer
timer = [NSTimer scheduledTimerWithTimeInterval:10 target:self selector:@selector(download:) userInfo:nil repeats:YES];
But now I want to call this function when from applicationDidEnterBackground.
If the application is in background how to invoke that download method every 10 or 15 mins ?
You cant simply run the application in the Background in iPhone.Either your application should fell into the audio,voip,location ,external-accessory ,etc category.Please refer this Link.
Or you have to make the application to come foreground to achieve your tasks.
Go through the apple docs and post your questions