我试过这个
GMSMarker *marker = [[GMSMarker alloc]init];
marker.icon = [UIImage imageNamed:@"pin2.png"];
marker.position = CLLocationCoordinate2DMake(lati, longi);
marker.groundAnchor = CGPointMake(0.5, 0.5);
marker.draggable = YES;
marker.map = mapView;
但我没有得到图像。
答案 0 :(得分:1)
我认为你错过了这一行:
[mapView setSelectedMarker:marker];