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

1

10

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?

Sanferd answered 15/11, 2013 at 22:43 Comment(0)
P
25

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.

Pastrami answered 26/11, 2013 at 13:24 Comment(4)
Yes, that's exactly my case. thank you for your help. For the moment I have just put my Map out of the table. Thanks again.Sanferd
I just spent hours trying to figure this out. Thank you very much. This issue also happens for me in iOS 8Dupleix
Thanks, you have saved me from a lot of wasted time!Fritzie
Still an issue on iOS10.3. Thanks for the saved time.Amaras

© 2022 - 2024 — McMap. All rights reserved.