Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyBoard reset? #17

Open
Steven4294 opened this issue Aug 10, 2014 · 4 comments
Open

KeyBoard reset? #17

Steven4294 opened this issue Aug 10, 2014 · 4 comments

Comments

@Steven4294
Copy link

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

@Steven4294
Copy link
Author

In other words is there some command that I can use to clear the Keyboard

[self.contentWrapper.inputView clear]

@asifhabib
Copy link

only this issue keeping me away using this control.

@albertgh
Copy link

I just copy this method to .h file....

- (void)_updateInputViewFrameWithKeyboardFrame:(CGRect)keyboardFrame
                                   forceReload:(BOOL)reload;

Use like this works for me.

[self.inputBar _updateInputViewFrameWithKeyboardFrame:CGRectZero
                                          forceReload:NO];

@ShengtaoLei
Copy link

The method @albertgh mentioned is correct. but before call that method you should also set
<preself.inputBar.inputViewScrollView.textView.text = nil;
self.inputBar.inputView.textView.text = nil;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants