小编EeK*_*Kay的帖子

未找到UIViewController的Xamarin.iOS/MonoTouch Storyboard Segue

Xamarin.IOS/Monotouch中的以下情况适用:

  • 我正在使用两个viewcontrollers,VCOne和VCTwo,我在XCode Storyboard编辑器(MYVCOneClass和MyVCTwoClass)中为它们分配了两个自定义类.
  • 然后我将一个segue从VCOne(从左侧列表中的viewcontroller)拖到编辑器部分的VCTwo viewcontroller实例,然后选择"Push".
  • 我将segue命名为"OneToTwoSegue".

我的问题

当我从VCOne类中的按钮单击事件处理程序执行以下调用时:

this.performSegue("OneToTwoSegue", this);
Run Code Online (Sandbox Code Playgroud)

我收到一个运行时错误,指出在MyVCOneClass对象上找不到OneToTwoSegue.

有谁知道为什么我不能从这样的代码中调用这个segue?我知道当我将它们链接到单元格,按钮等时,我看到segues正在工作......

mobile storyboard xamarin.ios ios segue

1
推荐指数
1
解决办法
1805
查看次数

标签 统计

ios ×1

mobile ×1

segue ×1

storyboard ×1

xamarin.ios ×1