0
mkpinannotationviewをタップして次のクラスに移動したいと思います。これを行うにはどうすればよいのでしょうか。 ありがとうsandymkpinannotationviewのテーピング
mkpinannotationviewをタップして次のクラスに移動したいと思います。これを行うにはどうすればよいのでしょうか。 ありがとうsandymkpinannotationviewのテーピング
このmapViewデリゲートは、ピンが選択されたときに呼び出されます。
- (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view
{
// Here push your view controller
}
- (ボイド)のMapView:(MKMapView *)のMapView didSelectAnnotationView:(MKAnnotationView *)図 {\t \t BusinessCardViewController * businessCardViewController = [[BusinessCardViewController ALLOC] INIT]。 \t [self.view addSubview:businessCardViewController.view]; } – sandy
しかし、まだ何も起こらなかったとも私は.hのクラス – sandy
にデリゲートを使用しています - (無効)のMapView:(MKMapView *)のMapView didSelectAnnotationView:(MKAnnotationView *)ビュー{BusinessCardViewController * businessCardViewController = [[BusinessCardViewControllerのalloc]のinit] ; [self presentModalViewController:businessCardViewController animated:YES]; [リリースbusinessCardViewController]; – iPrabu