Latest 0.1.2
License MIT
Platforms ios 7.0, requires ARC
Frameworks CoreLocation

CI Status

It’s a CoreLocation wrapper (singleton) to allow an internal use overall your application.

Call [JFELocationManager sharedInstance]; in your AppDelegate file or somewhere else to initiate the singleton and automatically starting to update location and heading

What about iOS 8 ?

JFELocationManager is now ready for iOS 8. To enable the library you have to add a new entry in you Info.plist file.

NSLocationAlwaysUsageDescription = "The message to be shown";


Set a controller as

@interface JFEViewController : UIViewController<JFELocationManagerDelegate>

Then you can implement each (or one) of these delegate methods:

-(void) didUpdateHeading:(CLHeading *)newHeading;
-(void) didUpdateLocation:(CLLocation*) location;
-(void) didChangeAuthorizationStatus:(CLAuthorizationStatus)status;

To allow background updates you have to define those methods in your appdelegate file

- (void)applicationDidEnterBackground:(UIApplication *)application
    // ... Do something else ...
    // Force to disable the location update only if there is no "important delegate"
    if ([JFELocationManager sharedInstance].importantDelegate == nil) {
        NSLog(@"AppDelegate -> I disable updating location");
        [[JFELocationManager sharedInstance] stop];


- (void)applicationDidBecomeActive:(UIApplication *)application
    // ... Do something else ...
    if ([JFELocationManager sharedInstance].importantDelegate == nil) {
        [[JFELocationManager sharedInstance] start];
        NSLog(@"AppDelegate -> I enable updating location");


iOS 6.0 and later.


Add JFELocationManager.h/m into your project, or pod 'JFELocationManager' using CocoaPods.


Jerome Freyre, [email protected]


JFELocationManager is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "JFELocationManager",
    "version": "0.1.2",
    "summary": "JFELocationManager is a CLLocationManager wrapper.",
    "description": "                        JFELocationManager is a CLLocationManager wrapper that enable a really simple usage of location and heading update in your app instead of allocating a CLLocationManager object on each view.nn                        * JFELocationManagerDelegate -> three methods that will be called on heading, location or status updatesn                        * delegate vs importantDelegate -> be able to know if you have to stop background update or notnn",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Ju00e9rome Freyre": "[email protected]"
    "source": {
        "git": "",
        "branch": "master",
        "tag": "0.1.2"
    "platforms": {
        "ios": "7.0"
    "requires_arc": true,
    "source_files": "Pod/Classes/*.{h,m}",
    "frameworks": "CoreLocation",
    "public_header_files": "Pod/Classes/*.h"

Pin It on Pinterest

Share This