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