回答

8

設置地圖delegate到視圖控制器,然後實現谷歌地圖的委託方法

-(UIView *)mapView:(GMSMapView *) aMapView markerInfoWindow:(GMSMarker*) marker 
{ 
    UIView *view = [[UIView alloc]init]; 
    //customize the UIView, for example, in your case, add a UILabel as the subview of the view 
    return view; 
} 
+0

哦,我明白了。通過這種方式,我們可以將任何其他視圖導入到UIView中來自定義InfoWindow。 – 2013-03-12 03:27:55

相關問題