私はこれを可能にするlibを探していました:
1 http://zsoft.es/imgs/annotations.jpg
また、タイトルの右側にボタンを追加することもできます。可能であれば、字幕に画像を追加したり、字幕にボタンを追加したりすることもできます。
ありがとう。
私はこれを可能にするlibを探していました:
1 http://zsoft.es/imgs/annotations.jpg
また、タイトルの右側にボタンを追加することもできます。可能であれば、字幕に画像を追加したり、字幕にボタンを追加したりすることもできます。
ありがとう。
MKAnnotationViewで次のプロパティを設定できます。
// The left accessory view to be used in the standard callout.
@property (retain, nonatomic) UIView *leftCalloutAccessoryView;
// The right accessory view to be used in the standard callout.
@property (retain, nonatomic) UIView *rightCalloutAccessoryView;
Appleのドキュメントから次を使用しますleftCalloutAccessoryView
。
の(MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id<MKAnnotation>)annotation
に を割り当てることができUIImageView
ますleftCalloutAccessoryView
:
myAnnotationView.leftCalloutAccessoryView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"myImage.png"]