I want to display a 2 line label in the callout for current location. MKUserLocation and not MKAnnotation Can anybody help with how is it possible?
Am sure It would be possible with custom Callout.. But not sure how to create it for MKUserLocation.
In the viewForAnnotation
method you could try this:
- (MKAnnotationView *)map:(MKMapView *)map viewForAnnotation:(id <MKAnnotation>) annotation{
if(self._mapView.userLocation==annotation){
self._mapView.userLocation.title=@"some text";
self._mapView.userLocation.subtitle=@"some text";
return nil;
}
}
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With