为什么我的地图视图标注半透明/透明,如何更改颜色? [英] Why is my map view callout translucent/transparent and how do I change it's color?
问题描述
我在iOS 7上,我有以下问题。经过一些研究后,我无法找到线索...
I'm on iOS 7 and I have the following problem. I can't find a clue after some research curiously...
我有一个左右配件的地图视图注释,但中间是透明的(默认iOS 7行为)我认为)。
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?
推荐答案
UITableViewCell
中的 MKMapView
?我遇到了类似的问题,单元格的 UITableViewCellSelectionStyle
导致了这种视觉故障。
Is your MKMapView
inside a UITableViewCell
? I had a similar issue, where the UITableViewCellSelectionStyle
of the cell caused this visual glitch.
将其设置为 UITableViewCellSelectionStyleNone
为我修好了。
Setting it to UITableViewCellSelectionStyleNone
fixed it for me.
这篇关于为什么我的地图视图标注半透明/透明,如何更改颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!