Lostania
Lostania

Reputation: 145

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?

Upvotes: 10

Views: 1239

Answers (1)

Erik
Erik

Reputation: 844

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.

Upvotes: 25

Related Questions