之前项目中用到过高德地图定位(显示位置)之类的东西,自己写了个高德地图弹出框的demo
所用到的类在CallOutView 目录下

原理是在 XCUCustomAnnotationCalloutView中,XCUCustomAnnotationCalloutView继承MAAnnotationView ,重写-(id)initWithAnnotation:(id<MAAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier 方法。
在XCUCustomContentView 中自定义弹出框的样式。
得到的效果:
demo 点击此处 :CustomCallOutView
网友评论