XBLocation 1.0.1.1

XBLocation 1.0.1.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Sep 2015

Maintained by Eugene Nguyen.



XBLocation 1.0.1.1

  • By
  • Eugene Nguyen

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.