2010-12-11 7 views

答えて

1

このmapViewデリゲートは、ピンが選択されたときに呼び出されます。

- (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view 
{ 
// Here push your view controller 
} 
+0

- (ボイド)のMapView:(MKMapView *)のMapView didSelectAnnotationView:(MKAnnotationView *)図 {\t \t BusinessCardViewController * businessCardViewController = [[BusinessCardViewController ALLOC] INIT]。 \t [self.view addSubview:businessCardViewController.view]; } – sandy

+0

しかし、まだ何も起こらなかったとも私は.hのクラス – sandy

+0

にデリゲートを使用しています - (無効)のMapView:(MKMapView *)のMapView didSelectAnnotationView:(MKAnnotationView *)ビュー{BusinessCardViewController * businessCardViewController = [[BusinessCardViewControllerのalloc]のinit] ; [self presentModalViewController:businessCardViewController animated:YES]; [リリースbusinessCardViewController]; – iPrabu

関連する問題