Set annotation's title as current address

后端 未结 3 1243
天涯浪人
天涯浪人 2021-01-22 13:46

I want to get the current location\'s address and set it to the annotation\'s title. But it didn\'t work. I think it\'s because of the block, but I don\'t know how to fix it. An

3条回答
  •  迷失自我
    2021-01-22 13:55

    I should implement this method

    - (MKAnnotationView *)mapView:(MKMapView *)theMapView viewForAnnotation:(id )annotation{}
    

    Sorry for that stupid question.

提交回复
热议问题