Custom info window in IOS google maps sdk

前端 未结 4 1077
自闭症患者
自闭症患者 2020-12-21 06:41

being a newby IOS developer, I\'m really struggling to get something basic to work.

I have a need to display this kind of custom info window upon a marker click in t

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-21 07:01

    Make Xib as you want...set Text and image

    set delegate GMSMapViewDelegate

    -(UIView *)mapView:(GMSMapView *)mapView markerInfoWindow:(GMSMarker *)marker{
    
        CustomInfoWindow *infoWindow=[[[NSBundle mainBundle] loadNibNamed:@"InfoWindow" owner:self options:nil] objectAtIndex:0];  
         return infoWindow;
    
    }
    

    https://www.youtube.com/watch?v=ILiBXYscsyY for more help see this video..Uploded by google

提交回复
热议问题