Question

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!

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top