-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing the keyboard #4
Comments
Finally! I've solved my problem adding removedOnCompletion into JLBPartialModal.m
Like this:
With this I make sure that the animations are removed :D |
hm this doesn't working for me. With this fix the back-view will be shown with his original full size frame on the end of the animation. |
Could you put the code here? |
I'm having no special code. Just take the demo project and put an UISearchBar on top of the PartialModalView. First time UISearchBar becomes first responder everything works well. From the second time on the keyboard will shown with the wrong size. |
I'm using this for my app, hope this helps: In the secondView: Tip: self.texto is a UITextView
I have a close button in my view, when is touched the action is:
In first place this action only hides the keyboard but fires a NSNotification with the name UIKeyboardDidHideNotification, this notification is executed when the keyboard hiding animation is ending, then, this notification calls a custom method called KeyboardWillHide where I dismiss de view. Try this, maybe you find a solution. Dont forget to add the little fix that I found |
Hi.
My problem is this, when I try to show the keyboard at the second view, the first time this happens everything looks fine, the problem comes the second time, the keyboard is smaller but still works in its original size.
First Time
Second Time
I do not know if there is any way to force the second view has the becomeFirstResponder.
Hopefully have any suggestions to solve my problem.
First View
View is called using a IBAction
Second view
The class have 3 delegates, one of them didPresentPartialModalView, I'm using this delegate for show the keyboard after the view and animation ends:
Then, when the user touch Close button the UITextView have resignFirstResponder and with the NSNotificationCenter I know that the keyboard is hidden:
Thanks!
The text was updated successfully, but these errors were encountered: