You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first of all, I'd like to thank you for this awesome library, it helped me a lot :)
I'm currently trying to register a custom UIView class with a UITextField inside it, lets call it CustomTextField. I wanted to make IQKeyboardManager's built-in next and previous button enabled for it, and found that I could do it by registering the class to toolbarPreviousNextAllowedClasses.
Problem is, CustomTextField is built using XIB, using the method from this link. This will make CustomTextField have one UIView subview, which will be loaded using UINib(nibName:, bundle:), and set the owner using returned nib's instantiateWithOwner(self, options: nil). I just realized that this method will make my UITextField become a subview of CustomTextField's subview, instead of become its direct subview.
Is there any workaround for this? Is it possible to enable the next and previous button for custom views made with method above?
Apologies if similar method has been asked before. Thank you very much!
The text was updated successfully, but these errors were encountered:
In general, CustomTextView should be on top of all UITextField. Library will detect all textFields which are inside CustomTextView even if with multiple hierarchy.
Oops, seems I logged the wrong class. It works now :)
Still, I found it only sets the toolbar's next and before button... isn't it supposed to set the Next button as replacement of the Return button on the keyboard, too?
Hi,
first of all, I'd like to thank you for this awesome library, it helped me a lot :)
I'm currently trying to register a custom
UIView
class with aUITextField
inside it, lets call itCustomTextField
. I wanted to make IQKeyboardManager's built-in next and previous button enabled for it, and found that I could do it by registering the class totoolbarPreviousNextAllowedClasses
.Problem is,
CustomTextField
is built using XIB, using the method from this link. This will makeCustomTextField
have oneUIView
subview, which will be loaded usingUINib(nibName:, bundle:)
, and set the owner using returned nib'sinstantiateWithOwner(self, options: nil)
. I just realized that this method will make myUITextField
become a subview ofCustomTextField
's subview, instead of become its direct subview.Is there any workaround for this? Is it possible to enable the next and previous button for custom views made with method above?
Apologies if similar method has been asked before. Thank you very much!
The text was updated successfully, but these errors were encountered: