在地图中定位

  • NSLocationWhenInUseUsageDescription ,允许在前台使用时获取GPS的描述
  • NSLocationAlwaysUsageDescription ,允许永久使用GPS的描述
  • 定位功能可以和地图功能分离使用,单独的定位功能使用方式如下:
  • 在.h里写代理方法 BMKLocationServiceDelegate以及定义变量BMKLocationService *_locService;
  • 在.m文件中
{    
    //初始化BMKLocationService  
    _locService = [[BMKLocationService alloc]init];  
    _locService.delegate = self;  
    //启动LocationService  
    [_locService startUserLocationService];  
}  ```

* 记住写经纬度!!!
* 记住写经纬度!!!

* 记住写经纬度!!!


你可能感兴趣的:(在地图中定位)