Simple Question
I´m working on an App for iOS where I embedded the new Google Map for native iOS. Everything works fine except one problem where I can´t find a propp
1.conform to the GMSMapViewDelegate protocol.
@interface YourViewController ()
// your properties
@end
2.set your mapView_ delegate.
mapView_.delegate = self;
3.implement the GMSMapViewDelegate method
- (void)mapView:(GMSMapView *)mapView didTapInfoWindowOfMarker:(GMSMarker *)marker {
// your code
}
btw, marker.userData is useful. you can set your needed data into it and use it in - mapView:didTapInfoWindowOfMarker: