我将#import 添加到我的.h
为什么这个 XCODE 不能识别 'GMSMarker' 但能识别 GSMMarkerOptions?
这不起作用(来自文档):
CLLocationCoordinate2D position = CLLocationCoordinate2DMake(0, 0);
GMSMarker *marker = [GMSMarker markerWithPosition:position];
marker.title = @"Hello World";
marker.map = mapView_;
这工作正常:
GMSMarkerOptions *options = [[GMSMarkerOptions alloc] init];
options.title = @"gsmmarkeroptions does exist";