使用标识符执行segue时的信号Sigabrt

时间:2015-12-24 17:25:35

标签: ios xcode swift segue xcode-storyboard

我正在使用Swift和Xcode创建一个应用程序。我最近在执行segue时收到了一个Signal Sigabrt。这是错误:

2015-12-24 20:53:10.748 Passroom[8174:378664] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver (<Passroom.DashboardViewController: 0x7f8043c55d40>) has no segue with identifier 'dashboard''
*** First throw call stack:
(
0   CoreFoundation                      0x0000000109eebf45 __exceptionPreprocess + 165
1   libobjc.A.dylib                     0x000000010bd8cdeb objc_exception_throw + 48
2   UIKit                               0x000000010aa1a9ea -[UIViewController shouldPerformSegueWithIdentifier:sender:] + 0
3   **MYAPPNAME**                            0x00000001094891ce _TFC8Passroom14ViewController13viewDidAppearfS0_FSbT_ + 814
4   **MYAPPNAME**                            0x00000001094892b1 _TToFC8Passroom14ViewController13viewDidAppearfS0_FSbT_ + 49
5   UIKit                               0x000000010aa1d675 -[UIViewController _setViewAppearState:isAnimating:] + 830
6   UIKit                               0x000000010aa1dff8 -[UIViewController _endAppearanceTransition:] + 262
7   UIKit                               0x000000010a9e889e -[UIPresentationController transitionDidFinish:] + 827
8   UIKit                               0x000000010abbd24f -[_UICurrentContextPresentationController transitionDidFinish:] + 42
9   UIKit                               0x000000010a9ebfd5 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke_2 + 183
10  UIKit                               0x000000010b27eb24 -[_UIViewControllerTransitionContext completeTransition:] + 101
11  UIKit                               0x000000010a9e56b6 -[UITransitionView notifyDidCompleteTransition:] + 252
12  UIKit                               0x000000010a9e53c6 -[UITransitionView _didCompleteTransition:] + 1598
13  UIKit                               0x000000010a9e7c08 -[UITransitionView _transitionDidStop:finished:] + 104
14  UIKit                               0x000000010a90d9df -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 241
15  UIKit                               0x000000010a90dd8e -[UIViewAnimationState animationDidStop:finished:] + 80
16  QuartzCore                          0x000000010ebfafa0 _ZN2CA5Layer23run_animation_callbacksEPv + 308
17  libdispatch.dylib                   0x000000010c8a249b _dispatch_client_callout + 8
18  libdispatch.dylib                   0x000000010c88a2af _dispatch_main_queue_callback_4CF + 1738
19  CoreFoundation                      0x0000000109e4c2e9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
20  CoreFoundation                      0x0000000109e0d8a9 __CFRunLoopRun + 2073
21  CoreFoundation                      0x0000000109e0ce08 CFRunLoopRunSpecific + 488
22  GraphicsServices                    0x000000010d71aad2 GSEventRunModal + 161
23  UIKit                               0x000000010a88530d UIApplicationMain + 171
24  **MYAPPNAME**                           0x000000010949481d main + 109
25  libdyld.dylib                       0x000000010c8d692d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

注意:我的应用名称只是我实际应用名称的替代品。 这是我的故事板:

Main.Storyboard

我正在使用此代码执行segue:

self.performSegueWithIdentifier("dashboard", sender: self)

我该如何解决此错误?感谢您的帮助。

0 个答案:

没有答案
相关问题