美文网首页
高德地图加载

高德地图加载

作者: 碧玉小瑕 | 来源:发表于2017-07-14 14:55 被阅读10次

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;

}

相关文章

网友评论

      本文标题:高德地图加载

      本文链接:https://www.haomeiwen.com/subject/ezanhxtx.html