Latest 1.0.1.1
Homepage https://github.com/EugeneNguyen/XBLocation
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit, CoreLocation
Authors

[![CI Status](http://img.shields.io/travis/Eugene Nguyen/XBLocation.svg?style=flat)](https://travis-ci.org/Eugene Nguyen/XBLocation)
Version
License
Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

How to use

  1. Import XBLocation.h where you want to use location function
#import "XBLocation.h"
  1. Start location service
[XBLocation registerLocation];
  1. Add handle of location
[self handleLocation:@selector(locationDidChange)];

// and

- (void)locationDidChange
{
    NSLog(@"%f %f", [XBLocation currentLocation].coordinate.latitude, [XBLocation currentLocation].coordinate.longitude);
}

// or you can use current location everywhere 
[XBLocation currentLocation];

Requirements

Installation

XBLocation is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "XBLocation"

Author

Eugene Nguyen, [email protected]

License

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

Latest podspec

{
    "name": "XBLocation",
    "version": "1.0.1.1",
    "summary": "Powerful tool for gathering location",
    "description": "Powerful tool for gathering location, save a lot of line of code",
    "homepage": "https://github.com/EugeneNguyen/XBLocation",
    "license": "MIT",
    "authors": {
        "Eugene Nguyen": "[email protected]"
    },
    "source": {
        "git": "https://github.com/EugeneNguyen/XBLocation.git",
        "tag": "1.0.1.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "XBLocation": [
            "Pod/Assets/*.png"
        ]
    },
    "frameworks": [
        "UIKit",
        "CoreLocation"
    ]
}

Pin It on Pinterest

Share This