【发布时间】:2015-03-28 18:21:45
【问题描述】:
我正在尝试为 Google 地图创建一个自定义标记,但我的代码给了我一个奇怪的空间视图,如下图所示:
那个白色的视图是什么?如何删除它?应该只有红色的!
-(UIView *)mapView:(GMSMapView *)mapView markerInfoContents:(GMSMarker *)marker{
UIView *infoView = [UIView new];
infoView.frame = CGRectMake(0, 0, 290, 192);
// Setting the bg as red just to illustrate
infoView.backgroundColor = [UIColor redColor];
return infoView;
}
【问题讨论】:
标签: ios google-maps google-maps-sdk-ios