-
Notifications
You must be signed in to change notification settings - Fork 64
Description
The app crashes if the input view is reloaded (with reloadInputAccessoryView) when the view is collapsed.
- (void)_updateInputViewFrameWithKeyboardFrame:(CGRect)keyboardFrame
forceReload:(BOOL)reload
{
// If the keyboardFrame equals CGRectZero and
// the inputView is not visible yet, we won't be able
// to access the keyboard's frame.
#ifdef DEBUG
NSCAssert(!(CGRectEqualToRect(keyboardFrame, CGRectZero) &&
self.inputView.superview == nil), nil);
#endifI need to refresh the view when it is collapsed -- the user can still hit "Send"
Stack trace
2014-05-22 14:09:19.250 NearKat[21012:60b] *** Assertion failure in -RDRStickyKeyboardView _updateInputViewFrameWithKeyboardFrame:forceReload:, /Users/reynaldo/Documents/Workspace/nearkat-ios/Pods/RDRStickyKeyboardView/RDRStickyKeyboardView/RDRStickyKeyboardView.m:754
2014-05-22 14:09:19.255 NearKat[21012:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: ''
*** First throw call stack:
(
0 CoreFoundation 0x039bc1e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x032ba8e5 objc_exception_throw + 44
2 CoreFoundation 0x039bc048 +[NSException raise:format:arguments:] + 136
3 Foundation 0x017f5b20 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 101
4 NearKat 0x0023beec -[RDRStickyKeyboardView _updateInputViewFrameWithKeyboardFrame:forceReload:] + 572
5 NearKat 0x00238a60 -[RDRStickyKeyboardView reloadInputAccessoryView] + 96