Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is my map view callout translucent/transparent and how do I change it's color?

I'm on iOS 7 and I have the following problem. I can't find a clue after some research curiously...

I have a map view annotation with left and right accessories but transparent in the middle (default iOS 7 behavior I think).

How to change the default translucent/transparent background to any other color I want?

like image 414
Lostania Avatar asked Nov 15 '13 22:11

Lostania


1 Answers

Is your MKMapView inside a UITableViewCell? I had a similar issue, where the UITableViewCellSelectionStyle of the cell caused this visual glitch.

Setting it to UITableViewCellSelectionStyleNone fixed it for me.

like image 135
Erik Avatar answered Oct 27 '22 19:10

Erik