当我点击一个标记时,我希望 map 弹出一个自定义信息窗口,而不是默认信息窗口。 自定义信息窗口上有一个按钮,但是当我单击该按钮时。该按钮没有触发!!! 我需要你的帮助,帮助,帮助......
-(UIView*)mapView:(GMSMapView *)mapView markerInfoWindow:(GMSMarker *)marker
{
NSLog(@"sssssssss");
self.iCallOutView.nameLabel.text=marker.title;
self.iCallOutView.coordinate=marker.position;
return self.iCallOutView;
}
最佳答案
查看此主题 How to force refresh contents of the markerInfoWindow in Google Maps iOS SDK
Note: The info window is rendered as an image each time it is displayed on the map. This means that any changes to its properties while it is active will not be immediately visible. The contents of the info window will be refreshed the next time that it is displayed.
所以我认为您不能处理信息窗口中任何控件的任何事件。
关于ios - 自定义信息窗口上方的按钮,但不会触发,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16827604/