iOS7中的多任務 - Background Fetch,Silent Remote Notifications, Background Transfer Service - songhongri的專
在beginBackgroundTaskWithExpirationHandler:裡寫一個超時處理(系統只給app分配了一定時間來進行後台任務,超時之前會調用這個block),然後進行開始進行後台任務處理,在任務結束或者過期的時候call一下endBackgroundTask:使之與begin方法配對(否則你 ......