下面,我为我的地图创建了一个注释,它完美地显示了标题和副标题。
但我希望在注释的左侧添加一个小图像,但无法弄清楚我需要对下面的代码做什么才能使其工作。
// 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];