当我运行我的应用程序,点击一个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