CocoaPods trunk is moving to be read-only. Read more on the blog, there are 12 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Oct 2016 |
Maintained by Aki Xavier.
ios >= 7.0
RDMgr is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "RDMgr"In AppDelegate.m, add the code below:
- (void)applicationWillResignActive:(UIApplication *)application {
[[RDManager sharedManager] resignActive];
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
[[RDManager sharedManager] becomeActive];
}
- (void)applicationWillTerminate:(UIApplication *)application {
[[RDManager sharedManager] terminate];
}Control running:
[[RDManager sharedManager] start];
[[RDManager sharedManager] pause];
[[RDManager sharedManager] stop];Implement your ViewController as a RDDataDelegate, and set it to the sharedManager with:
[RDManager sharedManager].delegate = myViewController;and you will receive data through:
- (void)distanceChanged:(double)distance;
- (void)gpsAccuracyChanged:(double)accuracy;
- (void)coordinateChanged:(CLLocation *)location;
- (void)stepChanged:(NSInteger)step;
- (void)durationChanged:(NSInteger)duration;
- (void)paceChanged:(double)pace;
- (void)calorieChanged:(NSInteger)calorie;
- (void)needsGpsAccess;Force fetch data as RDManager can run and share data between ViewControllers:
- (void)fetchData;Aki Xavier, [email protected]
RDMgr is available under the MIT license. See the LICENSE file for more info.