当我使用 segues(直接通过在情节提要上拖动它)推送视图时,它工作正常,并加载下一个视图。但是,当我尝试以编程方式实现所有这些以在单击 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: