2011-12-19 10 views
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:

答えて

0

あなたはMapViewの中に青い矢印を設定することができます

pin.rightCalloutAccessoryView = [UIButton buttonWithType:UIButtonTypeDetailDisclosure]; 
関連する問題