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

 ̄綄美尐妖づ 提交于 2019-12-30 08:13:47

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!