1.申请app id, 并在工程中执行
[AMapServicessharedServices].apiKey=@"8ae43d7811585e49739f79f7e661e787";
2.引入相关库
3.设置App Transport
4.要导入的系统库
5.[self.viewaddSubview:self.aMapView];
-(MAMapView*)aMapView
{
if(!_aMapView) {
_aMapView= [[MAMapViewalloc]initWithFrame:self.view.bounds];
_aMapView.delegate=self;
}
return_aMapView;
}