ViewForAnnotation is not being called

后端 未结 9 2005
悲哀的现实
悲哀的现实 2020-12-15 19:16

I am trying to make a map, where I can see my current location, and see what the street is called.

so far, I am able to put a pin on my map, but for some reason, I a

9条回答
  •  悲哀的现实
    2020-12-15 19:56

    After having set the delegate for the mapview if still the viewforannotation not getting called then this is something which you have missed - set the self.mapView.showsUserLocation to YES, in interface builder you can tick the shows userLocation option in attributes inspector.

提交回复
热议问题