【问题标题】:Perform segue on google maps infowindow在 google maps infowindow 上执行 segue
【发布时间】:2014-03-03 21:39:44
【问题描述】:

我有一个这样插入的谷歌地图:

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

我想在 Google Maps InfoWindow 点击事件上执行 segue:

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

在故事板上,我将目标视图附加到发送者视图控制器,但它失败并显示错误消息:

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

我的问题是我应该在哪里附加目标控制器?

谢谢!

【问题讨论】:

    标签: ios iphone objective-c google-maps


    【解决方案1】:

    在界面生成器中选择segue(VC之间的箭头),并确保infoView设置为标签中的标识符,右侧检查器中的滑块图标。

    【讨论】:

      猜你喜欢
      • 2023-03-16
      • 1970-01-01
      • 2011-02-11
      • 2013-09-17
      • 2014-01-28
      • 2019-05-14
      • 2014-12-10
      • 2023-04-11
      • 1970-01-01
      相关资源
      最近更新 更多