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