简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM