All the examples of use and tutorials I have found on beginBackgroundTaskWithExpirationHandler: show how to wrap a new task or tasks into a block for execution.
However if an activity has already started, for example suppose NSURLConnection is in the middle of a download, when the app goes into the background. Then how can that activity be dealt with using beginBackgroundTaskWithExpirationHandler?
Thanks
You should just wrap it in the background task block anyway. Then if the app enters the background, you will be allowed to continue.