Search code examples
iosswiftkeyboarduitextfielduitextfielddelegate

Making next button in iPAD keyboard


I'm using 3rd party framework in my app. This framework automatically generates multiple textfields in collectionView. I do not need to make any changes in storyboard, but simply instantiate this CustomViewController. This CustomViewController is subclass of UICollectionViewController.

If I have UITextFields on my viewcontroller in storyboard, I would set UITextFieldDelegate on the textFields.

But I'm not sure what I can do for my situation. In what way, can I achieve to make next button on keyboard? Is there a way to make changes in AppDelegate to show "next" button on every single textfield?


Solution

  • I prefer IQKeyboardManager for this type of situation. This keyboard manager will automatically detect all type of text input views and put a arrow button in keyboard Inputviews which is very helpful when you have multiple text input in your application on single controller.

    Here is the link :https://github.com/hackiftekhar/IQKeyboardManager

    It's simple and easy to integrate.