百度地图定位 (直接上图上代码)

 .h 文件  导入需要的头文件

#import<BaiduMapAPI_Map/BMKMapView.h>

#import<BaiduMapAPI_Location/BMKLocationService.h>

#import<BaiduMapAPI_Search/BMKGeocodeSearch.h>

#import<BaiduMapAPI_Map/BMKMapComponent.h>

#import<BaiduMapAPI_Search/BMKPoiSearchType.h>

@interface MapLocationViewController : SuperViewController

@property(nonatomic,strong) BMKUserLocation *locationPoint;

@end

.m 文件  直接上图

初次使用百度地图,有不对的地方请大家 多多指教

原文地址:https://www.cnblogs.com/Lovexiaohuzi/p/6707697.html