セグエを使用して (ストーリーボードに直接ドラッグして) ビューをプッシュすると、正常に動作し、次のビューが読み込まれます。ただし、(マップで) PIN の右矢印をクリックしたときにビューをプッシュするために、これらすべてをプログラムで実装しようとすると、少し混乱します:
編集
-(void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control
{
NSLog(@"calloutAccessoryControlTapped: enseigneDeLaStation");
[self performSegueWithIdentifer:@"You identifier" sender:self];
}
私はこのエラーを受け取りました:
Receiver Type 'MyFirstViewController' for instance message does not declare a method with selector performSegueWithIdentifer:sender: