iPhoneアプリを開発しているのですが、エラーが解決できず困っています。
エラー↓
####(アプリの名前)[1414:441431] Unknown class GameViewController in Interface Builder file.
2016-06-16 17:50:38.846 ####(アプリの名前)[1414:441431] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Push segues can only be used when the source controller is managed by an instance of UINavigationController.'
*** First throw call stack:
(
0 CoreFoundation 0x00000001033fdc65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010178dbb7 objc_exception_throw + 45
2 UIKit 0x0000000101f1fd72 -[UIStoryboardPushSegue destinationContainmentContext] + 0
3 UIKit 0x00000001019d2d62 -[UIApplication sendAction:to:from:forEvent:] + 75
4 UIKit 0x0000000101ae450a -[UIControl _sendActionsForEvents:withEvent:] + 467
5 UIKit 0x0000000101ae38d9 -[UIControl touchesEnded:withEvent:] + 522
6 UIKit 0x0000000101a1f958 -[UIWindow _sendTouchesForEvent:] + 735
7 UIKit 0x0000000101a20282 -[UIWindow sendEvent:] + 682
8 UIKit 0x00000001019e6541 -[UIApplication sendEvent:] + 246
9 UIKit 0x00000001019f3cdc _UIApplicationHandleEventFromQueueEvent + 18265
10 UIKit 0x00000001019ce59c _UIApplicationHandleEventQueue + 2066
11 CoreFoundation 0x0000000103331431 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
12 CoreFoundation 0x00000001033272fd __CFRunLoopDoSources0 + 269
13 CoreFoundation 0x0000000103326934 __CFRunLoopRun + 868
14 CoreFoundation 0x0000000103326366 CFRunLoopRunSpecific + 470
15 GraphicsServices 0x000000010505ba3e GSEventRunModal + 161
16 UIKit 0x00000001019d18c0 UIApplicationMain + 1282
17 陣地ゲーム 0x0000000101259e8f main + 111
18 libdyld.dylib 0x00000001040b1145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
MainstoryboardのViewControllerにボタンをつけ、別の画面に飛ぶというものを作りたかったのですが、他のサイトなどを見ても解決できませんでした。
MainファイルにSIGABRTというエラーが出ています。
単純なエラーだと思いますが、お願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。