UIStoryboard不包含标识为“ SecondVC”的视图控制器

时间:2019-05-11 06:37:55

标签: ios swift xcode

我是iOS的初学者,并且遇到以下错误

请帮助

2019-05-11 10:50:06.437806+0430 M[4853:898815] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Storyboard (<UIStoryboard: 0x60400046c140>) doesn't contain a view controller with identifier 'SecondVC''
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010797426b __exceptionPreprocess + 171
    1   libobjc.A.dylib                     0x00000001040d2f41 objc_exception_throw + 48
    2   UIKit                               0x0000000104f88773 -[UIStoryboard instantiateInitialViewController] + 0
    3   M                                   0x00000001037bf941 _T01M14ViewControllerC12gotonextpageySo8UIButtonCF + 177
    4   M                                   0x00000001037bfa9c _T01M14ViewControllerC12gotonextpageySo8UIButtonCFTo + 60
    5   UIKit                               0x00000001046a4631 -[UIApplication sendAction:to:from:forEvent:] + 83
    6   UIKit                               0x0000000104819000 -[UIControl sendAction:to:forEvent:] + 67
    7   UIKit                               0x000000010481931d -[UIControl _sendActionsForEvents:withEvent:] + 450
    8   UIKit                               0x000000010481824a -[UIControl touchesEnded:withEvent:] + 618
    9   UIKit                               0x0000000104717bf1 -[UIWindow _sendTouchesForEvent:] + 2807
    10  UIKit                               0x0000000104719314 -[UIWindow sendEvent:] + 4124
    11  UIKit                               0x00000001046bf2da -[UIApplication sendEvent:] + 352
    12  UIKit                               0x0000000104fcdf18 __dispatchPreprocessedEventFromEventQueue + 2809
    13  UIKit                               0x0000000104fd0a7f __handleEventQueueInternal + 5957
    14  CoreFoundation                      0x0000000107917351 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    15  CoreFoundation                      0x00000001079b6d71 __CFRunLoopDoSource0 + 81
    16  CoreFoundation                      0x00000001078fbcb9 __CFRunLoopDoSources0 + 185
    17  CoreFoundation                      0x00000001078fb29f __CFRunLoopRun + 1279
    18  CoreFoundation                      0x00000001078fab29 CFRunLoopRunSpecific + 409
    19  GraphicsServices                    0x000000010a0a69c6 GSEventRunModal + 62
    20  UIKit                               0x00000001046a29a4 UIApplicationMain + 159
    21  M                                   0x00000001037c0c17 main + 55
    22  libdyld.dylib                       0x0000000108a96621 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

0 个答案:

没有答案