In which case that mapView:viewForAnnotation: will be called?

前端 未结 2 1470
时光说笑
时光说笑 2020-12-18 08:25

Now I want to add a static pin annotation on map in my iOS app.

But I just want to know if the delegate method mapView:viewForAnnotation: will be called.

In

2条回答
  •  不知归路
    2020-12-18 08:37

    Obviously MKMapView at least will call mapView:viewForAnnotation: when it will need to display your MKAnnotationView to the screen.

提交回复
热议问题