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 the Apple documentation, it is said that
When it needs an annotation view, the map view calls the mapView:viewForAnnotation: method of its delegate object.
I have read several tutorials from Internet and official documentation from Apple.
And I still don't when this method will be called.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…