2

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

Kosuke Ogawa
  • 7,383
  • 3
  • 31
  • 52
Ilya
  • 21
  • 3
  • Possible duplicate of [Customize MKAnnotation Callout View?](https://stackoverflow.com/questions/30793315/customize-mkannotation-callout-view) – Kosuke Ogawa Jan 18 '18 at 14:41
  • Theoretically it duplicates but the problem is all the mentioned suggestions do not work actually. Also a can note that the all the question related suggestion match the most common one to change the background color but it doesn't work actually. – Ilya Jan 18 '18 at 15:46

1 Answers1

1

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

Shehata Gamal
  • 98,760
  • 8
  • 65
  • 87