タイトル、サブタイトル、左側の画像 (leftCalloutAccessoryView)、右側のボタン (rightCalloutAccessoryView) で MKPinAnnotationView を設定できます。
このコードを使用して、左側の画像を設定します。
UIImageView *myImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Icon.png"]];
myImageView.frame = CGRectMake(0, 0, 10, 10);
customPinView.leftCalloutAccessoryView = myImageView;
[myImageView release], myImageView = nil;
結果は次のようになります:
画像 1
しかし、私はこのようなものを取得したいと思います:画像
がサブタイトルに合わせられている画像
2 。
どうやって入手できますか?
どうも。