、、、objectivec2014-07-2118:02:38.259Sections[2962:70b]***Terminatingappduetouncaughtexception'NSInvalidArgumentException',reason:'mustpassaclassofkindUITableViewCell'***Firstthrowcallstack:(0CoreFoundation0x017375e4exceptionPreprocess+1801libobjc.A.dylib0x014ba8b6objc_exception_throw+442CoreFoundation0x017373bb+[NSExceptionraise:format:]+1393UIKit0x00314e08-[UITableViewregisterClass:forCellReuseIdentifier:]+2474Sections0x000030eb-[BIDViewControllersearchDisplayController:didLoadSearchResultsTableView:]+1715UIKit0x005cc0b4-[UISearchDisplayControllersearchResultsTableView]+4466UIKit0x005cd5f4-[UISearchDisplayController_containerView]+10317UIKit0x005c7563-[UISearchDisplayControllersetActive:animated:]+94628UIKit0x005cad4f-[UISearchDisplayControllersearchBarTextDidBeginEditing:]+2989UIKit0x004f52c9-[UISearchBar(UISearchBarStatic)_searchFieldBeginEditing]+11310libobjc.A.dylib0x014cc81f-[NSObjectperformSelector:withObject:]+7011UIKit0x0022ec8c-[UIApplicationsendAction:to:from:forEvent:]+10812UIKit0x0022ec18-[UIApplicationsendAction:toTarget:fromSender:forEvent:]+6113UIKit0x003266d9-[UIControlsendAction:to:forEvent:]+6614UIKit0x00326a9c-[UIControl_sendActionsForEvents:withEvent:]+57715UIKit0x0091254e-[UITextFieldwillAttachFieldEditor:]+68516UIKit0x0032c4d5-[UIFieldEditorbecomeFieldEditorForView:]+92717UIKit0x00909643-[UITextField_becomeFirstResponder]+16018UIKit0x004f841a-[UISearchBarTextField_becomeFirstResponder]+9819UIKit0x00386585-[UIResponderbecomeFirstResponder]+40020UIKit0x00289d0b-[UIView(Hierarchy)becomeFirstResponder]+11421UIKit0x009090e3-[UITextFieldbecomeFirstResponder]+5122UIKit0x005ae651-[UITextInteractionAssistant(UITextInteractionAssistant_Internal)setFirstResponderIfNecessary]+13523UIKit0x005b0ba2-[UITextInteractionAssistant(UITextInteractionAssistant_Internal)oneFingerTap:]+264024UIKit0x005a4f8c_UIGestureRecognizerSendActions+23025UIKit0x005a3c00-[UIGestureRecognizer_updateGestureWithEvent:buttonEvent:]+38326UIKit0x005a566d-[UIGestureRecognizer_delayedUpdateGesture]+6027UIKit0x005a8bcd___UIGestureRecognizerUpdate_block_invoke+5728UIKit0x005a8b4e_UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks+31729UIKit0x0059f248_UIGestureRecognizerUpdate+19930UIKit0x0026bd4a-[UIWindow_sendGesturesForEvent:]+129131UIKit0x0026cc6a-[UIWindowsendEvent:]+103032UIKit0x00240a36-[UIApplicationsendEvent:]+24233UIKit0x0022ad9f_UIApplicationHandleEventQueue+1142134CoreFoundation0x016c08af__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION+1535CoreFoundation0x016c023b__CFRunLoopDoSources0+23536CoreFoundation0x016dd30e__CFRunLoopRun+91037CoreFoundation0x016dcb33CFRunLoopRunSpecific+46738CoreFoundation0x016dc94bCFRunLoopRunInMode+12339GraphicsServices0x036d89d7GSEventRunModal+19240GraphicsServices0x036d87feGSEventRun+10441UIKit0x0022d94bUIApplicationMain+122542Sections0x0000399dmain+14143libdyld.dylib0x01d75701start+144???0x000000010x0+1)libc++abi.dylib:terminatingwithuncaughtexceptionoftypeNSException(lldb)、、、如上所示,错误提示,使用的是XCODE5无法根据错误提示找到出错行,网上有的方法试过不可以。希望知道的同学告知下。谢谢!
2 回答
阿晨1998
TA贡献2037条经验 获得超6个赞
在Xcode的BreakpointNavigator里面添加一个异常断点(AddExceptionBreakpoint),然后将断点条件设置成Exception:Object-C,这样就能在异常抛出之前断下来,你就可以查看当时的调用栈。注意最好在快要执行到出问题代码的时候才打开这个断点,否则会不断被各种异常干扰。
添加回答
举报
0/150
提交
取消