XBLocation 1.0.1.1

XBLocation 1.0.1.1

测试已测试
代码语言 Obj-CObjective C
许可 MIT
发布最新发布2015年9月

Eugene Nguyen维护。



XBLocation 1.0.1.1

  • 作者
  • Eugene Nguyen

用法

要运行示例项目,克隆仓库,然后首先从Example目录运行pod install

如何使用

  1. 在需要使用定位功能的文件中导入XBLocation.h
#import "XBLocation.h"
  1. 启动定位服务
[XBLocation registerLocation];
  1. 添加定位处理程序
[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];

要求

安装

XBLocation可通过CocoaPods获取。要安装它,只需在Podfile中添加以下行

pod "XBLocation"

作者

Eugene Nguyen, [email protected]

许可

XBLocation可在MIT许可下使用。有关更多信息,请参阅LICENSE文件。