質問

I have a Google Maps inserted like this:

[self.view insertSubview:mapView_ atIndex:0];

I would like to perform a segue on a Google Maps InfoWindow tap event:

- (void)mapView:(GMSMapView *)mapView didTapInfoWindowOfMarker:(GMSMarker *)marker
{
    [self performSegueWithIdentifier:@"infoView" sender:self];
}

On the storyboard I attached the destination view to the sender view controller but it fails with an error message:

Receiver (<Controller>) has no segue with identifier 'infoView'

My question is where should I attach the destination controller?

Thanks!

役に立ちましたか?

解決

Select the segue (arrow between the VCs) in interface builder and make sure infoView is set as the identifier in tab with the slider icon in the inspector on the right.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top