我正在为 ios swift 4.1 中的谷歌地图上的自定义窗口信息编写此方法,但该窗口不显示在谷歌地图上
我也是代表,但没有结果
func mapView(_mapView: GMSMapView, markerInfoWindow marker: GMSMarker) -> UIView?{
let infoWindow: InfoWindow = Bundle.main.loadNibNamed("InfoWindow", owner: self.view, options: nil)!.first! as! InfoWindow
infoWindow.numberCarLabel.text = "TLA-618"
infoWindow.dateLabel.text = "2018-05-02 10:39:43"
infoWindow.digreeLabel.text = "94"
infoWindow.addressLabel.text = "Sunrise Appartments, Marine Promenade, Karachi"
infoWindow.kilometterLabel.text = "0"
return infoWindow
}