【发布时间】:2014-03-11 21:56:10
【问题描述】:
我正在使用适用于 iOS 应用的 Google Maps SDK。我需要自定义markerinfowindow。我加了
1)@interface MapsViewController : UIViewController GMSMapViewDelegate
2) mapView_.delegate = self; 在 viewdidload 和
3)
- (UIView *)mapView:(GMSMapView *)mapView markerInfoWindow:(GMSMarker *)marker{
UIView *InfoWindow = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 150, 200)];
UILabel *nameLabel = [[UILabel alloc]init];
nameLabel.text = @"hi";
[InfoWindow addSubview:nameLabel];
return InfoWindow;
}
但markerInfoWindow中没有控制。
【问题讨论】:
标签: ios google-maps infowindow marker