Latest 0.0.1
Homepage https://github.com/Jennis/LocationHelper
License MIT
Platforms ios 5.0, requires ARC
Frameworks CoreLocation
Authors

Overview

LocationHelper is a simple class that will allow you to get user’s current location with a single instance across the application.

How to use

It can be initialised as easy as:

[[LocationHelper sharedInstance] requestNewLocation];

Before requesting you will have to set notification listener methods as

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(locationAuthorizationStatus:) name:kAuthorizationUpdateNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(locationUpdated:) name:kLocationUpdateNotification object:nil];

Whenever new location is available or authorisation status is changed you will be notified with the help of notification,

-(void)locationAuthorizationStatus:(NSNotification*)authorizationStatus{

}

-(void)locationUpdated:(NSNotification*)locationUpdateNotification{

}

License

LocationHelper is under the MIT Licence:

Copyright (c) 2013 Jennis

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Latest podspec

{
    "name": "LocationHelper",
    "version": "0.0.1",
    "summary": "Its singleton class for core location.",
    "homepage": "https://github.com/Jennis/LocationHelper",
    "license": {
        "type": "MIT",
        "file": "LocationHelperExample/License.txt"
    },
    "authors": {
        "Jennis": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Jennis/LocationHelper.git",
        "commit": "0be2ee4928d6fe8f88f89942ceec22b653248c86"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source_files": "LocationHelperExample/LocationHelper/*.{h,m}",
    "frameworks": "CoreLocation",
    "requires_arc": true
}

Pin It on Pinterest

Share This