0
this tutorialの後にMAPKIT
を追加し、in this imageのようにマップにデータを表示するように指示しました。MAPKITの統合とアクセシビリティ矢印の追加
地図の説明でBlue color arrow
(アクセシビリティコントロール)を取得する必要があります。私のコードは以下の通りです。どのように青色のアクセシビリティの矢印を追加するのですか?
- (void)viewDidLoad {
[super viewDidLoad];
[mapView setMapType:MKMapTypeStandard];
[mapView setZoomEnabled:YES];
[mapView setScrollEnabled:YES];
MKCoordinateRegion region = { {0.0, 0.0 }, { 0.0, 0.0 } };
region.center.latitude = 22.569722 ;
region.center.longitude = 88.369722;
region.span.longitudeDelta = 0.01f;
region.span.latitudeDelta = 0.01f;
[mapView setRegion:region animated:YES];
[mapView setDelegate:self];
DisplayMap *ann = [[DisplayMap alloc] init];
ann.title = @" Kolkata";
ann.subtitle = @"Mahatma Gandhi Road";
ann.coordinate = region.center;
[mapView addAnnotation:ann];
}
完全なコードはチュートリアルにあります。
また、デフォルトのRedピンの代わりに、カスタマイズしたイメージを追加するコードを編集するにはどうすればよいですか? viewForAnnotation: