0

I am trying to show a map view in the TableViewCell. I have crated a Cell from another view and tried to merge it to the main view. but I have an issue that I can't see the map view. Why I always get an empty map with only pin?

When I run the app

When I run the app

This is when I touch the cell

This is when I touch the cell

4

3 回答 3

1

将单元格视图的背景颜色设置为 UIClear 颜色。

于 2013-07-22T11:27:38.213 回答
1

在此处输入图像描述

我希望你也能做到这一点,我只需添加:

[cell addSubview:self.mapView];

干杯!!

如果您需要更多说明,请告诉我。

添加:

[self.mapView setScrollEnabled:FALSE];
于 2013-07-22T12:35:58.883 回答
0

这是因为选择了单元格,并且它的取消选择单元格(从代码或故事板/xib)和蓝色背景将消失,或者只是将 tableview selectable 设置为 false

于 2013-07-22T12:03:27.100 回答