1.申請(qǐng)app id, 并在工程中執(zhí)行
[AMapServicessharedServices].apiKey=@"8ae43d7811585e49739f79f7e661e787";
2.引入相關(guān)庫(kù)
3.設(shè)置App Transport
4.要導(dǎo)入的系統(tǒng)庫(kù)
5.[self.viewaddSubview:self.aMapView];
-(MAMapView*)aMapView
{
if(!_aMapView) {
_aMapView= [[MAMapViewalloc]initWithFrame:self.view.bounds];
_aMapView.delegate=self;
}
return_aMapView;
}