Task Completion Utility
##Usage
-
Setup
#import "LKTaskCompletion.h" - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [LKTaskCompletion.sharedInstance setup]; : }
-
When your task has finished
Call endBackgroundTask method.
[LKTaskCompletion.sharedInstance endBackgroundTask];
-
Etc
If you want to be disable background task, use enabled property.
LKTaskCompletion.sharedInstance.enabled = NO;
##Example
Count down in background.
The library is available through CocoaPods, to install it simply add the following line to your Podfile:
pod "LKTaskCompletion", :git => 'https://github.com/lakesoft/LKTaskCompletion.git'
Hiroshi Hashiguchi, [email protected]
The library is available under the MIT license. See the LICENSE file for more info.