下面,我创建了一个我的地图的注释,它完美地工作,并显示标题和副标题。地图注释添加图片
但我希望在注释的左侧添加一个小图像,但无法弄清我需要做些什么才能使其工作。
// Annotation
CLLocationCoordinate2D poseLocation;
poseLocation.latitude = POSE_LATITUDE;
poseLocation.longitude = POSE_LONGITUDE;
Annotation *myAnnotation = [[Annotation alloc] init];
myAnnotation.coordinate = poseLocation;
myAnnotation.title = @"Pose Beauty Salon";
myAnnotation.subtitle = @"100, Moneyhaw Road";
[self.myMapView addAnnotation:myAnnotation];
无关,但你应该做的'[[译注页头] INIT]',而不是仅仅'[译注页头];'。 – Anna