Ilya
Ilya

Reputation: 21

How to change MapKit callout background color?

If I try to customize both annotation view and callout view in some map view I cannot find a way to change all callout view background (may be it's not a callout view itself but I need to customize all required map view UI). Just changing a background color of a view used for detailCalloutAccessoryView property (that has UIView? type) that's the most common suggestion I find over the Web I get the following result. But I don't need white edges around the mentioned view, I need to set the same black color to all the callout view. How can I make it to change the color actually.

enter image description here

Upvotes: 2

Views: 975

Answers (1)

Shehata Gamal
Shehata Gamal

Reputation: 100503

You may add a subview to it with your preferred color see here custom calloutView see my example here customPinAnnotationButton

Upvotes: 1

Related Questions