romaonthego / RETableViewManager

Powerful data driven content manager for UITableView.
MIT License
2.48k stars 430 forks source link

I use it crash only with RETextItem #212

Open zltqzj opened 9 years ago

zltqzj commented 9 years ago

The code is: _manager = [[RETableViewManager alloc] initWithTableView:self.tableView]; RETableViewSection *section = [RETableViewSection sectionWithHeaderTitle:@""]; [_manager addSection:section]; _name = [RETextItem itemWithTitle:@"姓名" value:@"123" placeholder:@"姓名"]; [section addItem:_name];

and the crash content is: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '[NSXPCConnection sendInvocation]: A NULL reply block was passed into a message meant to be sent over a connection. (syncToKeyboardState:completionHandler:)' * First throw call stack: ( 0 CoreFoundation 0x000000010544ff35 exceptionPreprocess + 165 1 libobjc.A.dylib 0x0000000105ccabb7 objc_exception_throw + 45 2 CoreFoundation 0x000000010544fe6d +[NSException raise:format:] + 205 3 Foundation 0x00000001058aebb8 -[NSXPCConnection _sendInvocation:proxyNumber:remoteInterface:withErrorHandler:timeout:userInfo:] + 1347 4 Foundation 0x00000001058b8adc -[NSXPCConnection _sendInvocation:proxyNumber:remoteInterface:withErrorHandler:] + 32 5 CoreFoundation 0x00000001053af08f forwarding + 495 6 CoreFoundation 0x00000001053aee18 _CF_forwarding_prep_0 + 120 7 CoreFoundation 0x0000000105347c8c invoking_ + 140 8 CoreFoundation 0x0000000105347ae2 -[NSInvocation invoke] + 290 9 CoreFoundation 0x00000001053d6ed6 -[NSInvocation invokeWithTarget:] + 54 10 UIKit 0x000000010406febd -[UIKeyboardInputManagerClient handleRequest:] + 163 11 UIKit 0x000000010406fddc -[UIKeyboardInputManagerClient forwardInvocation:] + 120 12 CoreFoundation 0x00000001053af08f forwarding** + 495 13 CoreFoundation 0x00000001053aee18 _CF_forwarding_prep0 + 120 14 CoreFoundation 0x0000000105347c8c invoking + 140 15 CoreFoundation 0x0000000105347ae2 -[NSInvocation invoke] + 290 16 CoreFoundation 0x00000001053d6ed6 -[NSInvocation invokeWithTarget:] + 54 17 UIKit 0x0000000104070916 -[UIKeyboardInputManagerMux forwardInvocation:] + 85 18 CoreFoundation 0x00000001053af08f _forwarding_ + 495 19 CoreFoundation 0x00000001053aee18 _CF_forwarding_prep_0 + 120 20 UIKit 0x0000000103ad6526 -[UIKeyboardImpl syncInputManagerToKeyboardStateWithExecutionContext:] + 179 21 UIKit 0x0000000103ad5f53 64-[UIKeyboardImpl updateForChangedSelectionWithExecutionContext:]_block_invoke + 109 22 UIKit 0x0000000104043469 -[UIKeyboardTaskExecutionContext returnExecutionToParentWithInfo:] + 264 23 UIKit 0x0000000103ad5826 -[UIKeyboardImpl syncDocumentStateToInputDelegateWithExecutionContext:] + 707 24 UIKit 0x0000000103ad5edb -[UIKeyboardImpl updateForChangedSelectionWithExecutionContext:] + 296 25 UIKit 0x0000000104043914 -[UIKeyboardTaskQueue continueExecutionOnMainThread] + 332 26 UIKit 0x0000000103ad071f -[UIKeyboardImpl setDelegate:force:] + 2031 27 UIKit 0x0000000103d9ea12 -[UIPeripheralHost(UIKitInternal) _reloadInputViewsForResponder:] + 902 28 UIKit 0x0000000103a5b31d -[UIResponder becomeFirstResponder] + 468 29 UIKit 0x0000000103950e03 -[UIView(Hierarchy) becomeFirstResponder] + 99 30 UIKit 0x0000000104017ad7 -[UITextField becomeFirstResponder] + 51 31 UIKit 0x0000000103c9f9c1 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) setFirstResponderIfNecessary] + 177 32 UIKit 0x0000000103ca1a30 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) oneFingerTap:] + 2263 33 UIKit 0x0000000103c972e6 _UIGestureRecognizerSendActions + 262 34 UIKit 0x0000000103c95f89 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 532 35 UIKit 0x0000000103c9aba6 _UIGestureRecognizerUpdate_block_invoke662 + 51 36 UIKit 0x0000000103c9aaa2 _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 254 37 UIKit 0x0000000103c90b1d _UIGestureRecognizerUpdate + 2796 38 UIKit 0x000000010392aff6 -[UIWindow _sendGesturesForEvent:] + 1041 39 UIKit 0x000000010392bc23 -[UIWindow sendEvent:] + 667 40 UIKit 0x00000001038f89b1 -[UIApplication sendEvent:] + 246 41 UIKit 0x0000000103905a7d _UIApplicationHandleEventFromQueueEvent + 17370 42 UIKit 0x00000001038e1103 _UIApplicationHandleEventQueue + 1961 43 CoreFoundation 0x0000000105385551 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 44 CoreFoundation 0x000000010537b41d CFRunLoopDoSources0 + 269 45 CoreFoundation 0x000000010537aa54 __CFRunLoopRun + 868 46 CoreFoundation 0x000000010537a486 CFRunLoopRunSpecific + 470 47 GraphicsServices 0x00000001082749f0 GSEventRunModal + 161 48 UIKit 0x00000001038e4420 UIApplicationMain + 1282 49 Travel 0x0000000102c64cd7 main + 80 50 libdyld.dylib 0x000000010643e145 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException

What should I do to solve it ?Thanks.

duduWang20 commented 5 years ago

syncToKeyboardState:completionHandler: triggered when the keyboard appears . Check out you methodSignatureForSelector: and forwardInvocation: template methods , be careful about the method signature .

Kimball-Han commented 5 years ago

?