datwelk / rdrstickykeyboardview Goto Github PK
View Code? Open in Web Editor NEWPlease see https://github.com/datwelk/RDRGrowingTextView instead.
License: MIT License
Please see https://github.com/datwelk/RDRGrowingTextView instead.
License: MIT License
I've setup left button to be a back button. I am having to issues here. The action seems to work only when the keyboard is shows. The second issue is that I can't change the name of the button:
keyboardView.inputView.leftButton.titleLabel.text = @"Back";
doesn't work.
Good day!
How can I call the button function without initialization of inputViewKeyboard? I want it to work even when the textview is empty and I hit the button.
In master branch all ok(but a lot of other problems:). In development branch keyboardView.inputView.textView.text didn't get text when we on keyboard view. Thanks
Added RDRStickyKeyboardView in UITableViewController.
Perform the following steps:
1, Call [self.contentWrapper showKeyboard];
when enter into UITableViewController;
2, Exit UITableViewController;
3, Enter into UITableViewController again;
4, Enter any letter, RDRStickyKeyboardView Crash.
2014-05-15 16:13:22.479 SW[4854:60b] *** Assertion failure in -[RDRStickyKeyboardView _updateInputViewFrameWithKeyboardFrame:forceReload:](), /Users/venus/github/SW/SW/RDRStickyKeyboardView/RDRStickyKeyboardView.m:917
2014-05-15 16:13:22.502 SW[4854:60b] CRASH:
2014-05-15 16:13:22.502 SW[4854:60b] Stack Trace: (
0 CoreFoundation 0x030fb1e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x029db8e5 objc_exception_throw + 44
2 CoreFoundation 0x030fb048 +[NSException raise:format:arguments:] + 136
3 Foundation 0x02687b20 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 101
4 SW 0x0022497c -[RDRStickyKeyboardView _updateInputViewFrameWithKeyboardFrame:forceReload:] + 572
5 SW 0x00223836 -[RDRStickyKeyboardView _textViewDidChange:] + 134
6 Foundation 0x026ae049 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 40
7 CoreFoundation 0x03156f04 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
8 CoreFoundation 0x030aeefb _CFXNotificationPost + 2859
9 Foundation 0x025e7e41 -[NSNotificationCenter postNotificationName:object:userInfo:] + 98
10 Foundation 0x025f72ea -[NSNotificationCenter postNotificationName:object:] + 55
11 UIKit 0x01da9b6a -[UITextView textInputDidChange:] + 170
12 UIKit 0x01dd21b3 -[UITextInputController _sendDelegateChangeNotificationsForText:selection:] + 118
13 UIKit 0x01dd4090 -[UITextInputController _insertText:fromKeyboard:] + 768
14 UIKit 0x01dd4954 -[UITextInputController insertText:] + 372
15 UIKit 0x01da814f -[UITextView insertText:] + 49
16 UIKit 0x01887760 -[UIKeyboardImpl insertText:] + 87
17 UIKit 0x01898ea4 -[TIKeyboardOperationInsertText(UIKeyboardImpl) main] + 83
18 Foundation 0x026afc79 -[__NSOperationInternal _start:] + 671
19 Foundation 0x0262c9c8 -[NSOperation start] + 83
20 UIKit 0x01885d4d -[UIKeyboardImpl performOperations:] + 153
21 UIKit 0x01883f8e -[UIKeyboardImpl continueHandleKeyboardInputWithOperations:] + 75
22 UIKit 0x01883ddc __73-[UIKeyboardImpl replyHandlerForHandleKeyboardInputWithExecutionContext:]_block_invoke_2 + 44
23 UIKit 0x01ded978 -[UIKeyboardTaskQueue continueExecutionOnMainThread] + 402
24 UIKit 0x01dee01f -[UIKeyboardTaskQueue addTask:] + 144
25 UIKit 0x01894cc4 -[UIKeyboardImpl handleKeyEvent:] + 227
26 UIKit 0x016afcbc -[UIApplication _handleKeyUIEvent:] + 330
27 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
28 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
29 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
30 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
31 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
32 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
33 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
34 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
35 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
36 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
37 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
38 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
39 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
40 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
41 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
42 UIKit 0x016afb6b -[UIApplication handleKeyUIEvent:] + 84
43 UIKit 0x016afb0f -[UIApplication handleKeyHIDEvent:] + 458
44 UIKit 0x01697386 _UIApplicationHandleEventQueue + 3314
45 CoreFoundation 0x0308477f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
46 CoreFoundation 0x0308410b __CFRunLoopDoSources0 + 235
47 CoreFoundation 0x030a11ae __CFRunLoopRun + 910
48 CoreFoundation 0x030a09d3 CFRunLoopRunSpecific + 467
49 CoreFoundation 0x030a07eb CFRunLoopRunInMode + 123
50 GraphicsServices 0x04b075ee GSEventRunModal + 192
51 GraphicsServices 0x04b0742b GSEventRun + 104
52 UIKit 0x0169bf9b UIApplicationMain + 1225
53 SW 0x0018b72d main + 141
54 libdyld.dylib 0x03c22701 start + 1
)
2014-05-15 16:13:22.505 SW[4854:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: ''
*** First throw call stack:
(
0 CoreFoundation 0x030fb1e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x029db8e5 objc_exception_throw + 44
2 CoreFoundation 0x030fb048 +[NSException raise:format:arguments:] + 136
3 Foundation 0x02687b20 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 101
4 SW 0x0022497c -[RDRStickyKeyboardView _updateInputViewFrameWithKeyboardFrame:forceReload:] + 572
5 SW 0x00223836 -[RDRStickyKeyboardView _textViewDidChange:] + 134
6 Foundation 0x026ae049 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 40
7 CoreFoundation 0x03156f04 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
8 CoreFoundation 0x030aeefb _CFXNotificationPost + 2859
9 Foundation 0x025e7e41 -[NSNotificationCenter postNotificationName:object:userInfo:] + 98
10 Foundation 0x025f72ea -[NSNotificationCenter postNotificationName:object:] + 55
11 UIKit 0x01da9b6a -[UITextView textInputDidChange:] + 170
12 UIKit 0x01dd21b3 -[UITextInputController _sendDelegateChangeNotificationsForText:selection:] + 118
13 UIKit 0x01dd4090 -[UITextInputController _insertText:fromKeyboard:] + 768
14 UIKit 0x01dd4954 -[UITextInputController insertText:] + 372
15 UIKit 0x01da814f -[UITextView insertText:] + 49
16 UIKit 0x01887760 -[UIKeyboardImpl insertText:] + 87
17 UIKit 0x01898ea4 -[TIKeyboardOperationInsertText(UIKeyboardImpl) main] + 83
18 Foundation 0x026afc79 -[__NSOperationInternal _start:] + 671
19 Foundation 0x0262c9c8 -[NSOperation start] + 83
20 UIKit 0x01885d4d -[UIKeyboardImpl performOperations:] + 153
21 UIKit 0x01883f8e -[UIKeyboardImpl continueHandleKeyboardInputWithOperations:] + 75
22 UIKit 0x01883ddc __73-[UIKeyboardImpl replyHandlerForHandleKeyboardInputWithExecutionContext:]_block_invoke_2 + 44
23 UIKit 0x01ded978 -[UIKeyboardTaskQueue continueExecutionOnMainThread] + 402
24 UIKit 0x01dee01f -[UIKeyboardTaskQueue addTask:] + 144
25 UIKit 0x01894cc4 -[UIKeyboardImpl handleKeyEvent:] + 227
26 UIKit 0x016afcbc -[UIApplication _handleKeyUIEvent:] + 330
27 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
28 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
29 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
30 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
31 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
32 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
33 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
34 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
35 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
36 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
37 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
38 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
39 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
40 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
41 UIKit 0x018021be -[UIResponder(Internal) _handleKeyUIEvent:] + 59
42 UIKit 0x016afb6b -[UIApplication handleKeyUIEvent:] + 84
43 UIKit 0x016afb0f -[UIApplication handleKeyHIDEvent:] + 458
44 UIKit 0x01697386 _UIApplicationHandleEventQueue + 3314
45 CoreFoundation 0x0308477f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
46 CoreFoundation 0x0308410b __CFRunLoopDoSources0 + 235
47 CoreFoundation 0x030a11ae __CFRunLoopRun + 910
48 CoreFoundation 0x030a09d3 CFRunLoopRunSpecific + 467
49 CoreFoundation 0x030a07eb CFRunLoopRunInMode + 123
50 GraphicsServices 0x04b075ee GSEventRunModal + 192
51 GraphicsServices 0x04b0742b GSEventRun + 104
52 UIKit 0x0169bf9b UIApplicationMain + 1225
53 SW 0x0018b72d main + 141
54 libdyld.dylib 0x03c22701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I want to hide the keyboard after touchup inside the "send"button. I have tried to user the method such as "[_contentWrapper.inputView.textView resignFirstResponder];" ,but it doesn't work.
3q
Hi, how can I implement this method?
(BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text {
if([text isEqualToString:@"\n"]) {
//Method
return NO;
}
return YES;
}
Thanks
When i load my controller and load data i set my tableview header with code below.
[self.tableView setTableHeaderView:_loadMoreButton];
But when i scroll table view its disappear and never shown.
When the number of characters reach around 60, input coming from the top part of the keyboard (qwertyuiop) was not being recognized.
I'm using the RDRStickyKeyboard to post comments, but I'm encountering a problem where after I submit the first comment the input view still retains its shape (if the text inputted 2 lines more), so it is messed up for the next comment. Is there any method I can call to fully "reset" the input view. As in clear it out completely.
You can see what I'm talking about in the readMe GIF, when the keyboard retracts down it retains its larger shape.
I've tried
self.contentWrapper.inputView.textView.text = nil;
but that just clears the text, and doesn't make the keyboard one line
This project is wonderful, but many Apps still run on both iOS 7 and 6. We unfortunately cannot use this great source in our project since it requires iOS 7. It's my case. Are you planning on supporting iOS 6.1 soon?
when i write something height not increase automatically if i touch return button on keyboard height increase. should i add something ? after 3rd line i can not touch q-w-e-r-t ... buttons
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);
#endif
I need to refresh the view when it is collapsed -- the user can still hit "Send"
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
This is great, but I almost never need 2 buttons and it would be nice to be able to set a new button with my own style on it.
Do you have any interest in doing this or should I just make my own?
I've initialized my collectionview inside a tab of a UITabBarController and set the RDRStickyKeyboardView
's frame to end at the top of the tab bar by doing this:
(RubyMotion code below, but it makes no difference)
keyboardView = RDRStickyKeyboardView.alloc.initWithScrollView(collectionView)
keyboardView.frame = CGRectMake(0, 0, CGRectGetWidth(self.view.frame), CGRectGetHeight(self.view.frame) - self.tabBarController.tabBar.frame.size.height)
keyboardView.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth
self.view.addSubview(keyboardView)
And I get the control as expected above the tab bar:
However, when dismissing the control, it goes OVER TOP of the tab bar (out of its defined frame) as illustrated here:
Any idea why this is happening and how i can make it look better on a UICollectionView contained within a UITabBarController?
Basically, once the user enters a post and pressing the right button, I'm wanting to programmatically close the keyboard (without the user having to scroll the keyboard away.
I haven't been able to find a way to make it work. The usual ways of the "resignFirstResponder" method isn't working.
Any help would be appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.