问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/20011902/why-is-my-map-view-callout-translucent-transparent-and-how-do-i-change-its-colo