當我運行我的應用程序,點擊一個GO按鈕後,它需要我登錄頁面,這很好,但是當我點擊登錄它崩潰,並突出顯示在這是Apple代理文件中的代碼行....iOS Swift Xcode 8.0
類的AppDelegate:UIResponder,UIApplicationDelegate {然後顯示 一個錯誤,說... 2017年9月11日16:29:43.502智能家居系統 應用[1832:151828]未知的類 _TtC29Smart_Home_System_Application14ViewController在Interface Builder文件中。 2017-09-11 16:29:51.116智能家居系統 應用程序[1832:151828]未知類 _TtC29Smart_Home_System_Application14ViewController在Interface Builder文件中。 2017-09-11 16:30:01.197智能家居系統 應用[1832:151828] - [UIViewController LoginButton:]: 無法識別的選擇器發送到實例0x7f9f82503390 2017-09-11 16:30:01.217智能家居系統應用[ 1832:151828] * 終止應用程序由於未捕獲的異常 'NSInvalidArgumentException' 的,原因是: ' - [UIViewController中 LoginButton:]:無法識別的選擇發送到實例0x7f9f82503390' *第一擲調用堆棧:(0的CoreFoundation 0x0000000104a12b0b exceptionPreprocess + 171 1 libobjc.A.dylib
0x0000000101da2141 objc_exception_throw + 48 2 CoreFoundation
0x0000000104a82134 - [NSObject的(NSObject的)doesNotRecognizeSelector:] + 132 3的CoreFoundation 0x0000000104999840 ___forwarding_ + 1024 4的CoreFoundation 0x00000001049993b8 _CF_forwarding_prep_0 + 120 5的UIKit
0x0000000102275d82 - [UIApplication的sendAction:爲:從:forEvent:] + 83 6的UIKit 0x00000001023fa5ac - [UIControl sendAction:至:forEvent:] + 67 7的UIKit 0x00000001023fa8c7 - [UIControl _sendActionsForEvents:withEvent:方法] + 450 8的UIKit 0x00000001023f9802 - [UIControl touchesEnded:withEvent:方法] + 618 9的UIKit 0x00000001022e37ea - [的UIWindow _sendTouchesForEvent: ] + 2707 10 UIKit 0x00000001022e4f00 - [UIWindow sendEvent:] + 4114 11 UIKit
0x0000000102291a84 - [UIApplication的的SendEvent:] + 352 12的UIKit
0x0000000102a755d4 dispatchPreprocessedEventFromEventQueue + 2926 13的UIKit 0x0000000102a6d532 __handleEventQueue + 1122 14的CoreFoundation 0x00000001049b8c01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 15的CoreFoundation 0x000000010499e0cf __CFRunLoopDoSources0 + 527 16的CoreFoundation 0x000000010499d5ff __CFRunLoopRun + 911 17 CoreFoundation
0x000000010499d016 CFRunLoopRunSpecific + 406 18 GraphicsServices
0x000000010691da24 GSEventRunModal + 62 19 UIKit
0x0000000102274134 UIApplicationMain + 159 20智能家居系統 應用0x00000001017c9347主+ 55 21 libdyld.dylib
0x00000001059b265d啓動+ 1 22 ???
0x0000000000000001爲0x0 + 1)的libC++ abi.dylib:與類型NSException的 未捕獲的異常終止
我如何解決這個問題?請
請格式正確。 – prabodhprakash