amap_186****887 发表于 2018-10-9 20:13:23

地图怎么默认显示气泡


用了两种方式:- (MAAnnotationView *)mapView:(MAMapView *)mapView viewForAnnotation:(id <MAAnnotation>)annotation{    ....       annotationView.canShowCallout= YES;//设置气泡可以弹出,默认为NO      annotationView.selected = YES;      //第一种:为什么不会显示气泡
}
第二种: 使用 - (void)selectAnnotation: animated: 方法,会回调-(void)mapView:(MAMapView *)mapView didSelectAnnotationView:这不是我想要的
页: [1]
查看完整版本: 地图怎么默认显示气泡