展开Segue并不是在进行Segue

时间:2014-07-18 00:33:08

标签: ios objective-c uiviewcontroller stack-unwinding

目前我遇到以下错误:

2014-07-17 19:53:49.600 mobile-app[14483:60b] *** Assertion failure in -[UIStoryboardUnwindSegueTemplate _perform:], /SourceCache/UIKit/UIKit-    2935.138/UIStoryboardUnwindSegueTemplate.m:78
2014-07-17 19:53:49.602 mobile-app[14483:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not find a view controller to execute unwinding for <OptionsTabBarViewController: 0x16d75ad0>'

我尝试通过Touch up Inside对RootViewController进行Segue,然后执行SelectedIndex:1;

我在optionsTabBarViewController上有以下代码:

- (IBAction)cancelCall:(UIStoryboardSegue *)segue {

    [self setSelectedIndex:1];
}

在StoryBoard上,我将ViewController与Exit链接在一起是图像: enter image description here enter image description here

这就是我如何在ViewController上调用Segue:

[self performSegueWithIdentifier:@"history_vc" sender: self];

不明白为什么它没有执行Segue并给我下面显示的错误。

这是我的NavigationController Hirarchy: enter image description here

0 个答案:

没有答案