1,框架中添加CoreLocation.framework
2,引入头文件#import <CoreLocation/CoreLocation.h>
3,使用相关协议
@interface ARWUserMapAnnotationViewController ()<MKMapViewDelegate,CLLocationManagerDelegate>
4,声明变量
@property (nonatomic, strong) MKMapView *selfMapView;
@property (nonatomic, strong) CLLocationManager *locationManager; //用户获取位置
@property (nonatomic, strong) CLLocation *checkinLocation_MY; //保存获取的位置
5,加载地图,并获取当前位置
self.title = @"Map";
CGRect frame = [self.view